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