Docs
r182
文档
r182
输入与访问器
光照
lightViewPosition
lightPosition
lightProjectionUV (函数)
lightTargetPosition
lightShadowMatrix
相机
cameraNear
cameraProjectionMatrix
cameraProjectionMatrixInverse
cameraFar
cameraWorldMatrix
cameraViewMatrix
cameraIndex
cameraPosition
cameraNormalMatrix
渲染/屏幕/视口
pointUV
viewportSafeUV
frameGroup
backgroundRotation
viewportCoordinate
backgroundIntensity
viewportLinearDepth
frontFacing
viewportTexture
viewportSharedTexture
velocity
screenCoordinate
faceDirection
pointWidth
screenUV
screenSize
viewportDepthTexture
viewportSize
cameraViewport
viewportUV
deltaTime
toneMappingExposure
drawIndex
viewportMipTexture
backgroundBlurriness
frameId
viewport
材质属性
materialAttenuationColor
sheenRoughness
attenuationDistance
materialReflectivity
attenuationColor
metalness
anisotropyT
materialTransmission
materialRoughness
iridescenceIOR
clearcoatRoughness
materialSpecular
shininess
anisotropyB
materialMetalness
inversesqrt
materialLineScale
roughness
materialSheen
dashSize
materialIridescence
specularColor
materialLineGapSize
materialNormal
materialColor
materialAnisotropy
materialLightMap
materialAlphaTest
materialSpecularColor
materialPointSize
materialReference (函数)
materialRotation
materialAttenuationDistance
iridescenceThickness
specularF90
materialAnisotropyVector
materialRefractionRatio
anisotropy
materialAO
materialIOR
gapSize
materialClearcoatRoughness
alphaT
materialSpecularIntensity
materialShininess
materialSpecularStrength
dispersion
materialIridescenceIOR
materialEmissive
materialEnvIntensity
materialClearcoat
ior
materialOpacity
materialSheenRoughness
materialClearcoatNormal
clearcoat
materialLineDashOffset
transmission
materialLineWidth
materialThickness
materialEnvRotation
materialDispersion
diffuseColor
inverseSqrt
emissive
materialLineDashSize
sheen
materialIridescenceThickness
模型/对象
objectViewPosition
modelScale
modelViewPosition
modelDirection
modelWorldMatrix
modelWorldMatrixInverse
modelRadius
objectRadius
modelViewProjection
highpModelViewMatrix
objectPosition
objectDirection
modelNormalMatrix
highpModelNormalViewMatrix
objectWorldMatrix
modelViewMatrix
mediumpModelViewMatrix
modelPosition
objectScale
局部/变换后坐标
transformedNormalWorld
bitangentLocal
tangentWorld
positionView
transformedTangentWorld
shadowPositionWorld
transformedBitangentWorld
positionWorld
bentNormalView
transformedNormalView
positionLocal
normalView
tangentView
positionViewDirection
normalWorld
transformedClearcoatNormalView
bitangentView
bitangentWorld
normalViewGeometry
transformedBentNormalView
clearcoatNormalView
positionPrevious
normalWorldGeometry
positionWorldDirection
normalLocal
transformedTangentView
transformedBitangentView
通用输入
stepElement
subgroupBroadcast
screenDPR
directionToFaceDirection
color
INFINITY
subgroupMax
Stack
mx_modulo
uniformFlow
subgroupElect
mx_place2d
uniformArray
mx_unifiednoise3d
mx_ifgreater
subgroupInclusiveMul
time
replaceDefaultUV
interleavedGradientNoise
EPSILON
userData
OnBeforeMaterialUpdate
PI
mx_rotate2d
mx_ramp4
PI2 (TWO_PI)
PI2
subgroupShuffleXor
mx_unifiednoise2d
subgroupXor
mx_frame
builtinAOContext
builtin
uniformTexture
uniform
mx_invert
materialReference
mx_ifequal
addMethodChaining
builtinShadowContext
subgroupInclusiveAdd
subgroupMul
uniformCubeTexture
mx_subtract
subgroupOr
subgroupExclusiveMul
subgroupMin
lightProjectionUV
vertexStage
textureBicubic
mx_atan2
OnBeforeObjectUpdate
mx_separate
scriptableValue
subgroupShuffle
subgroupExclusiveAdd
mx_timer
mx_divide
subgroupShuffleDown
intBitsToFloat
textureLevel
inverse
mx_ifgreatereq
subgroupShuffleUp
subgroupBallot
nodeObjectIntent
HALF_PI
subgroupBroadcastFirst
mx_transform_uv
vogelDiskSample
深度
viewZToPerspectiveDepth
linearDepth
viewZToLogarithmicDepth
viewZToOrthographicDepth
depthPass
depth
几何体属性
attribute
tangentLocal
normalGeometry
positionGeometry
vertexIndex
instanceIndex
instance
uv
tangentGeometry
instancedDynamicBufferAttribute
skinning
vertexColor
bitangentGeometry
buffer
instancedBufferAttribute
instancedMesh
数学运算
坐标/值变换
orthographicDepthToViewZ
radians
spherizeUV
transformDirection
degrees
mx_rotate3d
rotate
logarithmicDepthToViewZ
refract
directionToColor
remap
colorToDirection
billboarding
perspectiveDepthToViewZ
getScreenPosition
remapClamp
reflect
getViewPosition
transformNormalToView
transformNormal
位运算
bitXor
countTrailingZeros
packHalf2x16
unpackHalf2x16
bitNot
countLeadingZeros
unpackUnorm2x16
unpackSnorm2x16
shiftLeft
bitOr
xor
packUnorm2x16
bitAnd
shiftRight
countOneBits
取整与范围
floor
clamp
smoothstepElement
sign
smoothstep
trunc
saturate
fract
min
ceil
max
round
step
range
基础算术
negate
add
remainder
oneMinus
mod
mx_multiply
sub
abs
div
reciprocal
mx_add
mul
三角函数
asin
tan
cos
atan
sin
acos
幂与对数
pow2
pow
cbrt
pow4
sqrt
exp2
mx_safepower
exp
log2
inverseSqrt
log
pow3
mx_power
向量与矩阵
TBNViewMatrix
lengthSq
determinant
faceforward
split
dot
length
distance
difference
vectorComponents
cross
normalize
transpose
逻辑与流程控制
比较
lessThan
equal
lessThanEqual
greaterThanEqual
notEqual
greaterThan
流程
stack
loop
incrementBefore
output
Switch
If
decrement
Return
assign
decrementBefore
Break
Continue
Discard
select
Loop
increment
逻辑
and
or
any
all
not
光照与着色
阴影
PCFSoftShadowFilter
pointShadow
PCFShadowFilter
BasicPointShadowFilter
BasicShadowFilter
shadow
PointShadowFilter
VSMShadowFilter
BRDF/BSDF
D_GGX
V_GGX_SmithCorrelated
iridescence
F_Schlick
BRDF_GGX
BRDF_Lambert
thickness
Schlick_to_F0
DFGApprox
DFGLUT
光照计算
getShIrradianceAt
lightTargetDirection
getDistanceAttenuation
lightingContext
directPointLight
lights
toonOutlinePass
雾效
rangeFogFactor
densityFogFactor
fog
反射/折射
reflector
reflectVector
refractView
reflectView
getParallaxCorrectNormal
parallaxDirection
textureCubeUV
refractVector
法线与粗糙度
faceForward
getGeometryRoughness
getRoughness
bentNormalView
normalFlat
getNormalFromDepth
纹理与采样
节点
rotateUV
textureBicubicLevel
mx_transform_uv
bumpMap
equirectUV
cubeTextureBase
mx_heighttonormal
textureBicubic
maxMipLevel
pmremTexture
texture
cubeTexture
textureLoad
textureSize
spritesheetUV
matcapUV
normalMap
triplanarTexture
triplanarTextures
dFdx
sampler
sample
fwidth
samplerComparison
cubeToUV
parallaxUV
getDirection
texture3D
dFdy
颜色操作
色彩空间
convertColorSpace
mx_hsvtorgb
mx_rgbtohsv
unpremult
sRGBTransferOETF
colorSpaceToWorking
mx_srgb_texture_to_lin_rec709
workingToColorSpace
sRGBTransferEOTF
色调映射
toneMapping
agxToneMapping
cineonToneMapping
neutralToneMapping
reinhardToneMapping
renderOutput
acesFilmicToneMapping
linearToneMapping
颜色调整
premult
unpremultiplyAlpha
saturation
premultiplyAlpha
vibrance
cdl
gain
hue
posterize
grayscale
luminance
blur
mx_contrast
混合模式
blendScreen
mixElement
blendOverlay
overlay
mix
blendColor
screen
blendBurn
blendDodge
程序化生成
振荡器/曲线
oscSawtooth
oscSquare
pcurve
oscSine
oscTriangle
parabola
sinc
噪声
mx_worley_noise_float
triNoise3D
mx_noise_float
mx_noise_vec4
mx_fractal_noise_vec3
rand
mx_worley_noise_vec2
mx_fractal_noise_float
mx_cell_noise_float
mx_noise_vec3
hash
mx_worley_noise_vec3
mx_fractal_noise_vec2
mx_fractal_noise_vec4
图案
checker
shapeCircle
mx_aastep
mx_ramptb
mx_ramplr
类型转换
节点
bvec2
bvec4
vec4
floatBitsToUint
floatBitsToInt
uvec2
ivec2
bvec3
mat2
vec2
convert
mat3
uint
float
uvec3
bool
int
packSnorm2x16
uvec4
uintBitsToFloat
bitcast
ivec4
mat4
ivec3
vec3
高级计算与 GPGPU
核心
computeKernel
ComputeNode
mrt
subgroupAny
subgroupAnd
outputStruct
subgroupAll
subgroupAdd
textureBarrier
workgroupBarrier
compute
storageBarrier
内置变量
subgroupIndex
workgroupId
globalId
invocationSubgroupIndex
invocationLocalIndex
localId
numWorkgroups
subgroupSize
原子操作
atomicAnd
atomicMin
atomicStore
atomicSub
atomicAdd
atomicOr
atomicXor
atomicLoad
atomicMax
高级技术
batch
morphReference
computeSkinning
数据结构
storageTexture
textureStore
referenceBuffer
nodeArray
arrayBuffer
workgroupArray
bufferAttribute
element
attributeArray
instancedArray
dynamicBufferAttribute
array
storage
框架与工具
调试与优化
mx_splittb
sharedUniformGroup
cache
label
debug
rtt
bypass
convertToTexture
Var
setName
nodeImmutable
passTexture
VarIntent
pass
mx_splitlr
节点结构与元数据
struct
nodeObject
ShaderNode
nodeProxyIntent
property
parameter
context
varyingProperty
varying
nodeObjects
range
Const
shaderStages
nodeProxy
reference
string
namespace
构建与管理
NodeShaderStage
uniformGroup
NodeAccess
renderGroup
getTextureIndex
objectGroup
getShadowRenderObjectFunction
getShadowMaterial
NodeType
setCurrentStack
ScriptableNodeResources
getConstNodeType
defined
defaultShaderStages
rendererReference
getCurrentStack
NodeUpdateType
defaultBuildStages
函数与代码注入
wgsl
wgslFn
atomicFunc
Fn
scriptable
overloadingFn
subBuild
glsl
js
glslFn
OnObjectUpdate
OnMaterialUpdate
call
code
expression
已弃用节点
viewportResolution
DFGApprox
timerGlobal
rangeFog
addNodeElement
uniforms
temp
remainder
viewportTopLeft
viewportBottomLeft
cubeToUV
densityFog
tslFn
dodge
cond
atan2
timerLocal
storageObject
timerDelta
equals
modInt
burn
append
材质节点
节点
NodeMaterial
MeshNormalNodeMaterial
PointsNodeMaterial
MeshSSSNodeMaterial
Line2NodeMaterial
MeshBasicNodeMaterial
MeshLambertNodeMaterial
VolumeNodeMaterial
MeshPhysicalNodeMaterial
MeshStandardNodeMaterial
MeshPhongNodeMaterial
LineBasicNodeMaterial
ShadowNodeMaterial
LineDashedNodeMaterial
MeshToonNodeMaterial
MeshMatcapNodeMaterial
SpriteNodeMaterial