1237 行
87 KiB
JSON
1237 行
87 KiB
JSON
|
|
{
|
||
|
|
"__type__": "cc.EffectAsset",
|
||
|
|
"_name": "builtin-reflection-probe-preview",
|
||
|
|
"_objFlags": 0,
|
||
|
|
"__editorExtras__": {},
|
||
|
|
"_native": "",
|
||
|
|
"techniques": [
|
||
|
|
{
|
||
|
|
"name": "opaque",
|
||
|
|
"passes": [
|
||
|
|
{
|
||
|
|
"properties": null,
|
||
|
|
"program": "builtin-reflection-probe-preview|unlit-vs:vert|unlit-fs:frag",
|
||
|
|
"migrations": {
|
||
|
|
"properties": {
|
||
|
|
"mainColor": {
|
||
|
|
"formerlySerializedAs": "color"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"phase": "deferred-forward",
|
||
|
|
"propertyIndex": 0,
|
||
|
|
"program": "builtin-reflection-probe-preview|unlit-vs:vert|unlit-fs:frag",
|
||
|
|
"migrations": {
|
||
|
|
"properties": {
|
||
|
|
"mainColor": {
|
||
|
|
"formerlySerializedAs": "color"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "transparent",
|
||
|
|
"passes": [
|
||
|
|
{
|
||
|
|
"blendState": {
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"blend": true,
|
||
|
|
"blendSrc": 2,
|
||
|
|
"blendDst": 4,
|
||
|
|
"blendDstAlpha": 4
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"properties": null,
|
||
|
|
"program": "builtin-reflection-probe-preview|unlit-vs:vert|unlit-fs:frag",
|
||
|
|
"depthStencilState": {
|
||
|
|
"depthTest": true,
|
||
|
|
"depthWrite": false
|
||
|
|
},
|
||
|
|
"migrations": {
|
||
|
|
"properties": {
|
||
|
|
"mainColor": {
|
||
|
|
"formerlySerializedAs": "color"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"phase": "deferred-forward",
|
||
|
|
"blendState": {
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"blend": true,
|
||
|
|
"blendSrc": 2,
|
||
|
|
"blendDst": 4,
|
||
|
|
"blendDstAlpha": 4
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"propertyIndex": 0,
|
||
|
|
"program": "builtin-reflection-probe-preview|unlit-vs:vert|unlit-fs:frag",
|
||
|
|
"depthStencilState": {
|
||
|
|
"depthTest": true,
|
||
|
|
"depthWrite": false
|
||
|
|
},
|
||
|
|
"migrations": {
|
||
|
|
"properties": {
|
||
|
|
"mainColor": {
|
||
|
|
"formerlySerializedAs": "color"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "add",
|
||
|
|
"passes": [
|
||
|
|
{
|
||
|
|
"rasterizerState": {
|
||
|
|
"cullMode": 0
|
||
|
|
},
|
||
|
|
"blendState": {
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"blend": true,
|
||
|
|
"blendSrc": 2,
|
||
|
|
"blendDst": 1,
|
||
|
|
"blendSrcAlpha": 2,
|
||
|
|
"blendDstAlpha": 1
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"properties": null,
|
||
|
|
"program": "builtin-reflection-probe-preview|unlit-vs:vert|unlit-fs:frag",
|
||
|
|
"depthStencilState": {
|
||
|
|
"depthTest": true,
|
||
|
|
"depthWrite": false
|
||
|
|
},
|
||
|
|
"migrations": {
|
||
|
|
"properties": {
|
||
|
|
"mainColor": {
|
||
|
|
"formerlySerializedAs": "color"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"phase": "deferred-forward",
|
||
|
|
"blendState": {
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"blend": true,
|
||
|
|
"blendSrc": 2,
|
||
|
|
"blendDst": 1,
|
||
|
|
"blendSrcAlpha": 2,
|
||
|
|
"blendDstAlpha": 1
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"propertyIndex": 0,
|
||
|
|
"program": "builtin-reflection-probe-preview|unlit-vs:vert|unlit-fs:frag",
|
||
|
|
"depthStencilState": {
|
||
|
|
"depthTest": true,
|
||
|
|
"depthWrite": false
|
||
|
|
},
|
||
|
|
"migrations": {
|
||
|
|
"properties": {
|
||
|
|
"mainColor": {
|
||
|
|
"formerlySerializedAs": "color"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "alpha-blend",
|
||
|
|
"passes": [
|
||
|
|
{
|
||
|
|
"rasterizerState": {
|
||
|
|
"cullMode": 0
|
||
|
|
},
|
||
|
|
"blendState": {
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"blend": true,
|
||
|
|
"blendSrc": 2,
|
||
|
|
"blendDst": 4,
|
||
|
|
"blendSrcAlpha": 2,
|
||
|
|
"blendDstAlpha": 4
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"properties": null,
|
||
|
|
"program": "builtin-reflection-probe-preview|unlit-vs:vert|unlit-fs:frag",
|
||
|
|
"depthStencilState": {
|
||
|
|
"depthTest": true,
|
||
|
|
"depthWrite": false
|
||
|
|
},
|
||
|
|
"migrations": {
|
||
|
|
"properties": {
|
||
|
|
"mainColor": {
|
||
|
|
"formerlySerializedAs": "color"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"phase": "deferred-forward",
|
||
|
|
"blendState": {
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"blend": true,
|
||
|
|
"blendSrc": 2,
|
||
|
|
"blendDst": 4,
|
||
|
|
"blendSrcAlpha": 2,
|
||
|
|
"blendDstAlpha": 4
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"propertyIndex": 0,
|
||
|
|
"program": "builtin-reflection-probe-preview|unlit-vs:vert|unlit-fs:frag",
|
||
|
|
"depthStencilState": {
|
||
|
|
"depthTest": true,
|
||
|
|
"depthWrite": false
|
||
|
|
},
|
||
|
|
"migrations": {
|
||
|
|
"properties": {
|
||
|
|
"mainColor": {
|
||
|
|
"formerlySerializedAs": "color"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"shaders": [
|
||
|
|
{
|
||
|
|
"blocks": [],
|
||
|
|
"samplerTextures": [],
|
||
|
|
"samplers": [],
|
||
|
|
"textures": [],
|
||
|
|
"buffers": [],
|
||
|
|
"images": [],
|
||
|
|
"subpassInputs": [],
|
||
|
|
"attributes": [
|
||
|
|
{
|
||
|
|
"name": "a_position",
|
||
|
|
"defines": [],
|
||
|
|
"format": 32,
|
||
|
|
"location": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_normal",
|
||
|
|
"defines": [],
|
||
|
|
"format": 32,
|
||
|
|
"location": 1
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_texCoord",
|
||
|
|
"defines": [],
|
||
|
|
"format": 21,
|
||
|
|
"location": 2
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_tangent",
|
||
|
|
"defines": [],
|
||
|
|
"format": 44,
|
||
|
|
"location": 3
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_joints",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING"
|
||
|
|
],
|
||
|
|
"location": 4
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_weights",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING"
|
||
|
|
],
|
||
|
|
"format": 44,
|
||
|
|
"location": 5
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_jointAnimInfo",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING",
|
||
|
|
"CC_USE_BAKED_ANIMATION"
|
||
|
|
],
|
||
|
|
"format": 44,
|
||
|
|
"isInstanced": true,
|
||
|
|
"location": 6
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_matWorld0",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING"
|
||
|
|
],
|
||
|
|
"format": 44,
|
||
|
|
"isInstanced": true,
|
||
|
|
"location": 7
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_matWorld1",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING"
|
||
|
|
],
|
||
|
|
"format": 44,
|
||
|
|
"isInstanced": true,
|
||
|
|
"location": 8
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_matWorld2",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING"
|
||
|
|
],
|
||
|
|
"format": 44,
|
||
|
|
"isInstanced": true,
|
||
|
|
"location": 9
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_lightingMapUVParam",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING",
|
||
|
|
"CC_USE_LIGHTMAP"
|
||
|
|
],
|
||
|
|
"format": 44,
|
||
|
|
"isInstanced": true,
|
||
|
|
"location": 10
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_localShadowBiasAndProbeId",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING"
|
||
|
|
],
|
||
|
|
"format": 44,
|
||
|
|
"isInstanced": true,
|
||
|
|
"location": 11
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_reflectionProbeData",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING",
|
||
|
|
"CC_USE_REFLECTION_PROBE"
|
||
|
|
],
|
||
|
|
"format": 44,
|
||
|
|
"isInstanced": true,
|
||
|
|
"location": 12
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_sh_linear_const_r",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING",
|
||
|
|
"CC_USE_LIGHT_PROBE"
|
||
|
|
],
|
||
|
|
"format": 44,
|
||
|
|
"isInstanced": true,
|
||
|
|
"location": 13
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_sh_linear_const_g",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING",
|
||
|
|
"CC_USE_LIGHT_PROBE"
|
||
|
|
],
|
||
|
|
"format": 44,
|
||
|
|
"isInstanced": true,
|
||
|
|
"location": 14
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_sh_linear_const_b",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING",
|
||
|
|
"CC_USE_LIGHT_PROBE"
|
||
|
|
],
|
||
|
|
"format": 44,
|
||
|
|
"isInstanced": true,
|
||
|
|
"location": 15
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "a_vertexId",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH"
|
||
|
|
],
|
||
|
|
"format": 11,
|
||
|
|
"location": 16
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"varyings": [
|
||
|
|
{
|
||
|
|
"name": "v_shadowBiasAndProbeId",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_REFLECTION_PROBE"
|
||
|
|
],
|
||
|
|
"stageFlags": 17,
|
||
|
|
"location": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "v_position",
|
||
|
|
"type": 15,
|
||
|
|
"count": 1,
|
||
|
|
"defines": [],
|
||
|
|
"stageFlags": 17,
|
||
|
|
"location": 1
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "v_normal",
|
||
|
|
"type": 15,
|
||
|
|
"count": 1,
|
||
|
|
"defines": [],
|
||
|
|
"stageFlags": 17,
|
||
|
|
"location": 2
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"fragColors": [
|
||
|
|
{
|
||
|
|
"name": "cc_FragColor",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"defines": [],
|
||
|
|
"stageFlags": 16,
|
||
|
|
"location": 0
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"descriptors": [
|
||
|
|
{
|
||
|
|
"rate": 0,
|
||
|
|
"blocks": [
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "CCMorph",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"name": "cc_displacementWeights",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 15,
|
||
|
|
"isArray": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_displacementTextureInfo",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH"
|
||
|
|
],
|
||
|
|
"stageFlags": 1
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "CCSkinningTexture",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"name": "cc_jointTextureInfo",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING",
|
||
|
|
"CC_USE_BAKED_ANIMATION"
|
||
|
|
],
|
||
|
|
"stageFlags": 1
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "CCSkinningAnimation",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"name": "cc_jointAnimInfo",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING",
|
||
|
|
"CC_USE_BAKED_ANIMATION"
|
||
|
|
],
|
||
|
|
"stageFlags": 1
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "CCSkinning",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"name": "cc_joints",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 0,
|
||
|
|
"precision": "highp ",
|
||
|
|
"isArray": true
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING",
|
||
|
|
"!CC_USE_BAKED_ANIMATION",
|
||
|
|
"!CC_USE_REAL_TIME_JOINT_TEXTURE"
|
||
|
|
],
|
||
|
|
"stageFlags": 1
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "CCLocal",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"name": "cc_matWorld",
|
||
|
|
"typename": "mat4",
|
||
|
|
"type": 25,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_matWorldIT",
|
||
|
|
"typename": "mat4",
|
||
|
|
"type": 25,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_lightingMapUVParam",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_localShadowBias",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_reflectionProbeData1",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_reflectionProbeData2",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_reflectionProbeBlendData1",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_reflectionProbeBlendData2",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"defines": [
|
||
|
|
"!USE_INSTANCING"
|
||
|
|
],
|
||
|
|
"stageFlags": 1
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"samplerTextures": [
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "cc_PositionDisplacements",
|
||
|
|
"typename": "sampler2D",
|
||
|
|
"type": 28,
|
||
|
|
"count": 1,
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH",
|
||
|
|
"CC_MORPH_TARGET_HAS_POSITION"
|
||
|
|
],
|
||
|
|
"stageFlags": 1,
|
||
|
|
"sampleType": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "cc_NormalDisplacements",
|
||
|
|
"typename": "sampler2D",
|
||
|
|
"type": 28,
|
||
|
|
"count": 1,
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH",
|
||
|
|
"CC_MORPH_TARGET_HAS_NORMAL"
|
||
|
|
],
|
||
|
|
"stageFlags": 1,
|
||
|
|
"sampleType": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "cc_TangentDisplacements",
|
||
|
|
"typename": "sampler2D",
|
||
|
|
"type": 28,
|
||
|
|
"count": 1,
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH",
|
||
|
|
"CC_MORPH_TARGET_HAS_TANGENT"
|
||
|
|
],
|
||
|
|
"stageFlags": 1,
|
||
|
|
"sampleType": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "cc_jointTexture",
|
||
|
|
"typename": "sampler2D",
|
||
|
|
"type": 28,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp ",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING",
|
||
|
|
"CC_USE_BAKED_ANIMATION"
|
||
|
|
],
|
||
|
|
"stageFlags": 1,
|
||
|
|
"sampleType": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "cc_realtimeJoint",
|
||
|
|
"typename": "sampler2D",
|
||
|
|
"type": 28,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp ",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING",
|
||
|
|
"!CC_USE_BAKED_ANIMATION",
|
||
|
|
"CC_USE_REAL_TIME_JOINT_TEXTURE"
|
||
|
|
],
|
||
|
|
"stageFlags": 1,
|
||
|
|
"sampleType": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "cc_reflectionProbeCubemap",
|
||
|
|
"typename": "samplerCube",
|
||
|
|
"type": 31,
|
||
|
|
"count": 1,
|
||
|
|
"defines": [],
|
||
|
|
"stageFlags": 16,
|
||
|
|
"sampleType": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "cc_reflectionProbePlanarMap",
|
||
|
|
"typename": "sampler2D",
|
||
|
|
"type": 28,
|
||
|
|
"count": 1,
|
||
|
|
"defines": [],
|
||
|
|
"stageFlags": 16,
|
||
|
|
"sampleType": 0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "local"
|
||
|
|
},
|
||
|
|
"name": "cc_reflectionProbeDataMap",
|
||
|
|
"typename": "sampler2D",
|
||
|
|
"type": 28,
|
||
|
|
"count": 1,
|
||
|
|
"defines": [],
|
||
|
|
"stageFlags": 16,
|
||
|
|
"sampleType": 0
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"samplers": [],
|
||
|
|
"textures": [],
|
||
|
|
"buffers": [],
|
||
|
|
"images": [],
|
||
|
|
"subpassInputs": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"rate": 1,
|
||
|
|
"blocks": [],
|
||
|
|
"samplerTextures": [],
|
||
|
|
"samplers": [],
|
||
|
|
"textures": [],
|
||
|
|
"buffers": [],
|
||
|
|
"images": [],
|
||
|
|
"subpassInputs": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"rate": 2,
|
||
|
|
"blocks": [],
|
||
|
|
"samplerTextures": [],
|
||
|
|
"samplers": [],
|
||
|
|
"textures": [],
|
||
|
|
"buffers": [],
|
||
|
|
"images": [],
|
||
|
|
"subpassInputs": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"rate": 3,
|
||
|
|
"blocks": [
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "global"
|
||
|
|
},
|
||
|
|
"name": "CCGlobal",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"name": "cc_time",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_screenSize",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_nativeSize",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_probeInfo",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_debug_view_mode",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"defines": [],
|
||
|
|
"stageFlags": 17
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "global"
|
||
|
|
},
|
||
|
|
"name": "CCCamera",
|
||
|
|
"members": [
|
||
|
|
{
|
||
|
|
"name": "cc_matView",
|
||
|
|
"typename": "mat4",
|
||
|
|
"type": 25,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_matViewInv",
|
||
|
|
"typename": "mat4",
|
||
|
|
"type": 25,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_matProj",
|
||
|
|
"typename": "mat4",
|
||
|
|
"type": 25,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_matProjInv",
|
||
|
|
"typename": "mat4",
|
||
|
|
"type": 25,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_matViewProj",
|
||
|
|
"typename": "mat4",
|
||
|
|
"type": 25,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_matViewProjInv",
|
||
|
|
"typename": "mat4",
|
||
|
|
"type": 25,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_cameraPos",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "highp "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_surfaceTransform",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_screenScale",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_exposure",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_mainLitDir",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_mainLitColor",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_ambientSky",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_ambientGround",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_fogColor",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_fogBase",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_fogAdd",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_nearFar",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_viewPort",
|
||
|
|
"typename": "vec4",
|
||
|
|
"type": 16,
|
||
|
|
"count": 1,
|
||
|
|
"precision": "mediump "
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"defines": [],
|
||
|
|
"stageFlags": 17
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"samplerTextures": [
|
||
|
|
{
|
||
|
|
"tags": {
|
||
|
|
"builtin": "global"
|
||
|
|
},
|
||
|
|
"name": "cc_environment",
|
||
|
|
"typename": "samplerCube",
|
||
|
|
"type": 31,
|
||
|
|
"count": 1,
|
||
|
|
"defines": [],
|
||
|
|
"stageFlags": 16,
|
||
|
|
"sampleType": 0
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"samplers": [],
|
||
|
|
"textures": [],
|
||
|
|
"buffers": [],
|
||
|
|
"images": [],
|
||
|
|
"subpassInputs": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"hash": 3530182757,
|
||
|
|
"glsl4": {
|
||
|
|
"vert": "#extension GL_EXT_shader_explicit_arithmetic_types_int32: require\nprecision highp float;\n#define QUATER_PI 0.78539816340\n#define HALF_PI 1.57079632679\n#define PI 3.14159265359\n#define PI2 6.28318530718\n#define PI4 12.5663706144\n#define INV_QUATER_PI 1.27323954474\n#define INV_HALF_PI 0.63661977237\n#define INV_PI 0.31830988618\n#define INV_PI2 0.15915494309\n#define INV_PI4 0.07957747155\n#define EPSILON 1e-6\n#define EPSILON_LOWP 1e-4\n#define LOG2 1.442695\n#define EXP_VALUE 2.71828183\n#define FP_MAX 65504.0\n#define FP_SCALE 0.0009765625\n#define FP_SCALE_INV 1024.0\n#define GRAY_VECTOR vec3(0.299, 0.587, 0.114)\n#define LIGHT_MAP_TYPE_DISABLED 0\n#define LIGHT_MAP_TYPE_ALL_IN_ONE 1\n#define LIGHT_MAP_TYPE_INDIRECT_OCCLUSION 2\n#define REFLECTION_PROBE_TYPE_NONE 0\n#define REFLECTION_PROBE_TYPE_CUBE 1\n#define REFLECTION_PROBE_TYPE_PLANAR 2\n#define REFLECTION_PROBE_TYPE_BLEND 3\n#define REFLECTION_PROBE_TYPE_BLEND_AND_SKYBOX 4\n#define LIGHT_TYPE_DIRECTIONAL 0.0\n#define LIGHT_TYPE_SPHERE 1.0\n#define LIGHT_TYPE_SPOT 2.0\n#define LIGHT_TYPE_POINT 3.0\n#define LIGHT_TYPE_RANGED_DIRECTIONAL 4.0\n#define IS_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_DIRECTIONAL)) < EPSILON_LOWP)\n#define IS_SPHERE_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPHERE)) < EPSILON_LOWP)\n#define IS_SPOT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPOT)) < EPSILON_LOWP)\n#define IS_POINT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_POINT)) < EPSILON_LOWP)\n#define IS_RANGED_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_RANGED_DIRECTIONAL)) < EPSILON_LOWP)\n#define TONE_MAPPING_ACES 0\n#define TONE_MAPPING_LINEAR 1\n#define SURFACES_MAX_TRANSMIT_DEPTH_VALUE 999999.0\n#ifndef CC_SURFACES_DEBUG_VIEW_SINGLE\n #define CC_SURFACES_DEBUG_VIEW_SINGLE 1\n#endif\n#ifndef CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC\n #define CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC 2\n#endif\nstruct StandardVertInput {\n highp vec4 position;\n vec3 normal;\n vec4 tangent;\n};\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec3 a_normal;\nlayout(location = 2) in vec2 a_texCoord;\nlayout(location = 3) in vec4 a_tangent;\n#if CC_USE_SKINNING\n layout(location = 4) in u32vec4 a_joints;\n layout(location = 5) in vec4 a_weights;\n#endif\n#if USE_INSTANCING\n #if CC_USE_BAKED_ANIMATION\n layout(location = 6) in highp vec4 a_jointAnimInfo;\n #endif\n layout(location = 7) in vec4 a_matWorld0;\n layout(location = 8) in vec4 a_matWorld1;\n layout(location = 9) in vec4 a_matWorld2;\n #if CC_USE_LIGHTMAP\n layout(location = 10) in vec4 a_lightingMapUVParam;\n #endif\n #if CC_USE_REFLECTION_PROBE || CC_RECEIVE_SHADOW\n #if CC_RECEIVE_SHADOW\n #endif\n layout(location = 11) in vec4 a_localShadowBiasAndProbeId;\n #endif\n #if CC_USE_REFLECTION_PROBE\n layout(location = 12) in vec4 a_reflectionProbeData;\n #endif\n #if CC_USE_LIGHT_PROBE\n layout(location = 13) in vec4 a_sh_linear_const_r;\n layout(location = 14) in vec4 a_sh_linear_const_g;\n layout(location = 15) in vec4 a_sh_linear_const_b;\n #endif\n#endif\n#if CC_USE_MORPH\n int getVertexId() {\n return gl_VertexIndex;\n }\n#endif\nhighp float decode32 (highp vec4 rgba) {\n rgba = rgba * 255.0;\n highp float Sign = 1.0 - (step(128.0, (rgba[3]) + 0.5)) * 2.0;\n highp float Exponent = 2.0 * (mod(float(int((rgba[3]) + 0.5)), 128.0)) + (step(128.0, (rgba[2]) + 0.5)) - 127.0;\n highp float Mantissa = (mod(float(int((rgba[2]) + 0.5)), 128.0)) * 65536.0 + rgba[1] * 256.0 + rgba[0] + 8388608.0;\n return Sign * exp2(Exponent - 23.0) * Mantissa;\n}\n#if CC_USE_MORPH\n layout(set = 2, binding = 4) uniform CCMorph {\n vec4 cc_displacementWeights[15];\n vec4 cc_displacementTextureInfo;\n };\n #if CC_MORPH_TARGET_HAS_POSITION\n layout(set = 2, binding = 8) uni
|
||
|
|
"frag": "\nprecision highp float;\nlayout(set = 2, binding = 13) uniform samplerCube cc_reflectionProbeCubemap;\nlayout(set = 2, binding = 14) uniform sampler2D cc_reflectionProbePlanarMap;\nlayout(set = 2, binding = 15) uniform sampler2D cc_reflectionProbeDataMap;\nlayout(set = 0, binding = 5) uniform samplerCube cc_environment;\nvec4 fragTextureLod (sampler2D tex, vec2 coord, float lod) {\n return textureLod(tex, coord, lod);\n}\nvec4 fragTextureLod (samplerCube tex, vec3 coord, float lod) {\n return textureLod(tex, coord, lod);\n}\nvec3 ACESToneMap (vec3 color) {\n color = min(color, vec3(8.0));\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\nvec3 LinearToSRGB(vec3 linear) {\n#ifdef CC_USE_SURFACE_SHADER\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (!IS_DEBUG_VIEW_COMPOSITE_ENABLE_GAMMA_CORRECTION) {\n return linear;\n }\n #endif\n#endif\n return sqrt(linear);\n}\nvec4 packRGBE (vec3 rgb) {\n highp float maxComp = max(max(rgb.r, rgb.g), rgb.b);\n highp float e = 128.0;\n if (maxComp > 0.0001) {\n e = log(maxComp) / log(1.1);\n e = ceil(e);\n e = clamp(e + 128.0, 0.0, 255.0);\n }\n highp float sc = 1.0 / pow(1.1, e - 128.0);\n vec3 encode = clamp(rgb * sc, vec3(0.0), vec3(1.0)) * 255.0;\n vec3 encode_rounded = floor(encode) + step(encode - floor(encode), vec3(0.5));\n return vec4(encode_rounded, e) / 255.0;\n}\nvec3 unpackRGBE (vec4 rgbe) {\n return rgbe.rgb * pow(1.1, rgbe.a * 255.0 - 128.0);\n}\nvec4 CCFragOutput (vec4 color) {\n #if CC_USE_RGBE_OUTPUT\n color = packRGBE(color.rgb);\n #elif !CC_USE_FLOAT_OUTPUT\n #if CC_USE_HDR && CC_TONE_MAPPING_TYPE == HDR_TONE_MAPPING_ACES\n color.rgb = ACESToneMap(color.rgb);\n #endif\n color.rgb = LinearToSRGB(color.rgb);\n #endif\n return color;\n}\nlayout(set = 0, binding = 0) uniform CCGlobal {\n highp vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_nativeSize;\n mediump vec4 cc_probeInfo;\n mediump vec4 cc_debug_view_mode;\n};\nlayout(set = 0, binding = 1) uniform CCCamera {\n highp mat4 cc_matView;\n highp mat4 cc_matViewInv;\n highp mat4 cc_matProj;\n highp mat4 cc_matProjInv;\n highp mat4 cc_matViewProj;\n highp mat4 cc_matViewProjInv;\n highp vec4 cc_cameraPos;\n mediump vec4 cc_surfaceTransform;\n mediump vec4 cc_screenScale;\n mediump vec4 cc_exposure;\n mediump vec4 cc_mainLitDir;\n mediump vec4 cc_mainLitColor;\n mediump vec4 cc_ambientSky;\n mediump vec4 cc_ambientGround;\n mediump vec4 cc_fogColor;\n mediump vec4 cc_fogBase;\n mediump vec4 cc_fogAdd;\n mediump vec4 cc_nearFar;\n mediump vec4 cc_viewPort;\n};\n#if CC_USE_REFLECTION_PROBE\n layout(location = 0) in mediump vec4 v_shadowBiasAndProbeId;\n#endif\nlayout(location = 2) in mediump vec3 v_normal;\nlayout(location = 1) in vec3 v_position;\nvec4 frag () {\n #if CC_USE_REFLECTION_PROBE\n if(v_shadowBiasAndProbeId.z < 0.0)\n {\n return vec4(1.0);\n }\n #endif\n vec3 V = normalize(cc_cameraPos.xyz - v_position);\n vec3 N = normalize(v_normal);\n vec3 R = normalize(reflect(-V, N));\n vec4 probe = fragTextureLod(cc_reflectionProbeCubemap, R, 0.0);\n vec4 finalColor = vec4(1.0);\n finalColor.rgb = unpackRGBE(probe);\n return CCFragOutput(finalColor);\n}\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = frag(); }"
|
||
|
|
},
|
||
|
|
"glsl3": {
|
||
|
|
"vert": "\nprecision highp float;\n#define QUATER_PI 0.78539816340\n#define HALF_PI 1.57079632679\n#define PI 3.14159265359\n#define PI2 6.28318530718\n#define PI4 12.5663706144\n#define INV_QUATER_PI 1.27323954474\n#define INV_HALF_PI 0.63661977237\n#define INV_PI 0.31830988618\n#define INV_PI2 0.15915494309\n#define INV_PI4 0.07957747155\n#define EPSILON 1e-6\n#define EPSILON_LOWP 1e-4\n#define LOG2 1.442695\n#define EXP_VALUE 2.71828183\n#define FP_MAX 65504.0\n#define FP_SCALE 0.0009765625\n#define FP_SCALE_INV 1024.0\n#define GRAY_VECTOR vec3(0.299, 0.587, 0.114)\n#define LIGHT_MAP_TYPE_DISABLED 0\n#define LIGHT_MAP_TYPE_ALL_IN_ONE 1\n#define LIGHT_MAP_TYPE_INDIRECT_OCCLUSION 2\n#define REFLECTION_PROBE_TYPE_NONE 0\n#define REFLECTION_PROBE_TYPE_CUBE 1\n#define REFLECTION_PROBE_TYPE_PLANAR 2\n#define REFLECTION_PROBE_TYPE_BLEND 3\n#define REFLECTION_PROBE_TYPE_BLEND_AND_SKYBOX 4\n#define LIGHT_TYPE_DIRECTIONAL 0.0\n#define LIGHT_TYPE_SPHERE 1.0\n#define LIGHT_TYPE_SPOT 2.0\n#define LIGHT_TYPE_POINT 3.0\n#define LIGHT_TYPE_RANGED_DIRECTIONAL 4.0\n#define IS_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_DIRECTIONAL)) < EPSILON_LOWP)\n#define IS_SPHERE_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPHERE)) < EPSILON_LOWP)\n#define IS_SPOT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPOT)) < EPSILON_LOWP)\n#define IS_POINT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_POINT)) < EPSILON_LOWP)\n#define IS_RANGED_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_RANGED_DIRECTIONAL)) < EPSILON_LOWP)\n#define TONE_MAPPING_ACES 0\n#define TONE_MAPPING_LINEAR 1\n#define SURFACES_MAX_TRANSMIT_DEPTH_VALUE 999999.0\n#ifndef CC_SURFACES_DEBUG_VIEW_SINGLE\n #define CC_SURFACES_DEBUG_VIEW_SINGLE 1\n#endif\n#ifndef CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC\n #define CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC 2\n#endif\nstruct StandardVertInput {\n highp vec4 position;\n vec3 normal;\n vec4 tangent;\n};\nin vec3 a_position;\nin vec3 a_normal;\nin vec2 a_texCoord;\nin vec4 a_tangent;\n#if CC_USE_SKINNING\n in vec4 a_joints;\n in vec4 a_weights;\n#endif\n#if USE_INSTANCING\n #if CC_USE_BAKED_ANIMATION\n in highp vec4 a_jointAnimInfo;\n #endif\n in vec4 a_matWorld0;\n in vec4 a_matWorld1;\n in vec4 a_matWorld2;\n #if CC_USE_LIGHTMAP\n in vec4 a_lightingMapUVParam;\n #endif\n #if CC_USE_REFLECTION_PROBE || CC_RECEIVE_SHADOW\n #if CC_RECEIVE_SHADOW\n #endif\n in vec4 a_localShadowBiasAndProbeId;\n #endif\n #if CC_USE_REFLECTION_PROBE\n in vec4 a_reflectionProbeData;\n #endif\n #if CC_USE_LIGHT_PROBE\n in vec4 a_sh_linear_const_r;\n in vec4 a_sh_linear_const_g;\n in vec4 a_sh_linear_const_b;\n #endif\n#endif\n#if CC_USE_MORPH\n in float a_vertexId;\n int getVertexId() {\n return int(a_vertexId);\n }\n#endif\nhighp float decode32 (highp vec4 rgba) {\n rgba = rgba * 255.0;\n highp float Sign = 1.0 - (step(128.0, (rgba[3]) + 0.5)) * 2.0;\n highp float Exponent = 2.0 * (mod(float(int((rgba[3]) + 0.5)), 128.0)) + (step(128.0, (rgba[2]) + 0.5)) - 127.0;\n highp float Mantissa = (mod(float(int((rgba[2]) + 0.5)), 128.0)) * 65536.0 + rgba[1] * 256.0 + rgba[0] + 8388608.0;\n return Sign * exp2(Exponent - 23.0) * Mantissa;\n}\n#if CC_USE_MORPH\n layout(std140) uniform CCMorph {\n vec4 cc_displacementWeights[15];\n vec4 cc_displacementTextureInfo;\n };\n #if CC_MORPH_TARGET_HAS_POSITION\n uniform sampler2D cc_PositionDisplacements;\n #endif\n #if CC_MORPH_TARGET_HAS_NORMAL\n uniform sampler2D cc_NormalDisplacements;\n #endif\n #if CC_MORPH_TARGET_HAS_TANGENT\n uniform sampler2D cc_TangentDisplacements;\n #endif\n vec2 getPixelLocation(vec2 textureResolution, int pixelIndex) {\n float pixelIndexF = float(pixelIndex);\n float x = mod(pixelIndexF, textureResolution.x);\n float y = floor(pixel
|
||
|
|
"frag": "\nprecision highp float;\nuniform samplerCube cc_reflectionProbeCubemap;\nuniform sampler2D cc_reflectionProbePlanarMap;\nuniform sampler2D cc_reflectionProbeDataMap;\nuniform samplerCube cc_environment;\nvec4 fragTextureLod (sampler2D tex, vec2 coord, float lod) {\n return textureLod(tex, coord, lod);\n}\nvec4 fragTextureLod (samplerCube tex, vec3 coord, float lod) {\n return textureLod(tex, coord, lod);\n}\nvec3 ACESToneMap (vec3 color) {\n color = min(color, vec3(8.0));\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\nvec3 LinearToSRGB(vec3 linear) {\n#ifdef CC_USE_SURFACE_SHADER\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (!IS_DEBUG_VIEW_COMPOSITE_ENABLE_GAMMA_CORRECTION) {\n return linear;\n }\n #endif\n#endif\n return sqrt(linear);\n}\nvec4 packRGBE (vec3 rgb) {\n highp float maxComp = max(max(rgb.r, rgb.g), rgb.b);\n highp float e = 128.0;\n if (maxComp > 0.0001) {\n e = log(maxComp) / log(1.1);\n e = ceil(e);\n e = clamp(e + 128.0, 0.0, 255.0);\n }\n highp float sc = 1.0 / pow(1.1, e - 128.0);\n vec3 encode = clamp(rgb * sc, vec3(0.0), vec3(1.0)) * 255.0;\n vec3 encode_rounded = floor(encode) + step(encode - floor(encode), vec3(0.5));\n return vec4(encode_rounded, e) / 255.0;\n}\nvec3 unpackRGBE (vec4 rgbe) {\n return rgbe.rgb * pow(1.1, rgbe.a * 255.0 - 128.0);\n}\nvec4 CCFragOutput (vec4 color) {\n #if CC_USE_RGBE_OUTPUT\n color = packRGBE(color.rgb);\n #elif !CC_USE_FLOAT_OUTPUT\n #if CC_USE_HDR && CC_TONE_MAPPING_TYPE == HDR_TONE_MAPPING_ACES\n color.rgb = ACESToneMap(color.rgb);\n #endif\n color.rgb = LinearToSRGB(color.rgb);\n #endif\n return color;\n}\nlayout(std140) uniform CCGlobal {\n highp vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_nativeSize;\n mediump vec4 cc_probeInfo;\n mediump vec4 cc_debug_view_mode;\n};\nlayout(std140) uniform CCCamera {\n highp mat4 cc_matView;\n highp mat4 cc_matViewInv;\n highp mat4 cc_matProj;\n highp mat4 cc_matProjInv;\n highp mat4 cc_matViewProj;\n highp mat4 cc_matViewProjInv;\n highp vec4 cc_cameraPos;\n mediump vec4 cc_surfaceTransform;\n mediump vec4 cc_screenScale;\n mediump vec4 cc_exposure;\n mediump vec4 cc_mainLitDir;\n mediump vec4 cc_mainLitColor;\n mediump vec4 cc_ambientSky;\n mediump vec4 cc_ambientGround;\n mediump vec4 cc_fogColor;\n mediump vec4 cc_fogBase;\n mediump vec4 cc_fogAdd;\n mediump vec4 cc_nearFar;\n mediump vec4 cc_viewPort;\n};\n#if CC_USE_REFLECTION_PROBE\n in mediump vec4 v_shadowBiasAndProbeId;\n#endif\nin mediump vec3 v_normal;\nin vec3 v_position;\nvec4 frag () {\n #if CC_USE_REFLECTION_PROBE\n if(v_shadowBiasAndProbeId.z < 0.0)\n {\n return vec4(1.0);\n }\n #endif\n vec3 V = normalize(cc_cameraPos.xyz - v_position);\n vec3 N = normalize(v_normal);\n vec3 R = normalize(reflect(-V, N));\n vec4 probe = fragTextureLod(cc_reflectionProbeCubemap, R, 0.0);\n vec4 finalColor = vec4(1.0);\n finalColor.rgb = unpackRGBE(probe);\n return CCFragOutput(finalColor);\n}\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = frag(); }"
|
||
|
|
},
|
||
|
|
"glsl1": {
|
||
|
|
"vert": "\nprecision highp float;\n#define QUATER_PI 0.78539816340\n#define HALF_PI 1.57079632679\n#define PI 3.14159265359\n#define PI2 6.28318530718\n#define PI4 12.5663706144\n#define INV_QUATER_PI 1.27323954474\n#define INV_HALF_PI 0.63661977237\n#define INV_PI 0.31830988618\n#define INV_PI2 0.15915494309\n#define INV_PI4 0.07957747155\n#define EPSILON 1e-6\n#define EPSILON_LOWP 1e-4\n#define LOG2 1.442695\n#define EXP_VALUE 2.71828183\n#define FP_MAX 65504.0\n#define FP_SCALE 0.0009765625\n#define FP_SCALE_INV 1024.0\n#define GRAY_VECTOR vec3(0.299, 0.587, 0.114)\n#define LIGHT_MAP_TYPE_DISABLED 0\n#define LIGHT_MAP_TYPE_ALL_IN_ONE 1\n#define LIGHT_MAP_TYPE_INDIRECT_OCCLUSION 2\n#define REFLECTION_PROBE_TYPE_NONE 0\n#define REFLECTION_PROBE_TYPE_CUBE 1\n#define REFLECTION_PROBE_TYPE_PLANAR 2\n#define REFLECTION_PROBE_TYPE_BLEND 3\n#define REFLECTION_PROBE_TYPE_BLEND_AND_SKYBOX 4\n#define LIGHT_TYPE_DIRECTIONAL 0.0\n#define LIGHT_TYPE_SPHERE 1.0\n#define LIGHT_TYPE_SPOT 2.0\n#define LIGHT_TYPE_POINT 3.0\n#define LIGHT_TYPE_RANGED_DIRECTIONAL 4.0\n#define IS_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_DIRECTIONAL)) < EPSILON_LOWP)\n#define IS_SPHERE_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPHERE)) < EPSILON_LOWP)\n#define IS_SPOT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPOT)) < EPSILON_LOWP)\n#define IS_POINT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_POINT)) < EPSILON_LOWP)\n#define IS_RANGED_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_RANGED_DIRECTIONAL)) < EPSILON_LOWP)\n#define TONE_MAPPING_ACES 0\n#define TONE_MAPPING_LINEAR 1\n#define SURFACES_MAX_TRANSMIT_DEPTH_VALUE 999999.0\n#ifndef CC_SURFACES_DEBUG_VIEW_SINGLE\n #define CC_SURFACES_DEBUG_VIEW_SINGLE 1\n#endif\n#ifndef CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC\n #define CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC 2\n#endif\nstruct StandardVertInput {\n highp vec4 position;\n vec3 normal;\n vec4 tangent;\n};\nattribute vec3 a_position;\nattribute vec3 a_normal;\nattribute vec2 a_texCoord;\nattribute vec4 a_tangent;\n#if CC_USE_SKINNING\n attribute vec4 a_joints;\n attribute vec4 a_weights;\n#endif\n#if USE_INSTANCING\n #if CC_USE_BAKED_ANIMATION\n attribute highp vec4 a_jointAnimInfo;\n #endif\n attribute vec4 a_matWorld0;\n attribute vec4 a_matWorld1;\n attribute vec4 a_matWorld2;\n #if CC_USE_LIGHTMAP\n attribute vec4 a_lightingMapUVParam;\n #endif\n #if CC_USE_REFLECTION_PROBE || CC_RECEIVE_SHADOW\n #if CC_RECEIVE_SHADOW\n #endif\n attribute vec4 a_localShadowBiasAndProbeId;\n #endif\n #if CC_USE_REFLECTION_PROBE\n attribute vec4 a_reflectionProbeData;\n #endif\n #if CC_USE_LIGHT_PROBE\n attribute vec4 a_sh_linear_const_r;\n attribute vec4 a_sh_linear_const_g;\n attribute vec4 a_sh_linear_const_b;\n #endif\n#endif\n#if CC_USE_MORPH\n attribute float a_vertexId;\n int getVertexId() {\n return int(a_vertexId);\n }\n#endif\nhighp float decode32 (highp vec4 rgba) {\n rgba = rgba * 255.0;\n highp float Sign = 1.0 - (step(128.0, (rgba[3]) + 0.5)) * 2.0;\n highp float Exponent = 2.0 * (mod(float(int((rgba[3]) + 0.5)), 128.0)) + (step(128.0, (rgba[2]) + 0.5)) - 127.0;\n highp float Mantissa = (mod(float(int((rgba[2]) + 0.5)), 128.0)) * 65536.0 + rgba[1] * 256.0 + rgba[0] + 8388608.0;\n return Sign * exp2(Exponent - 23.0) * Mantissa;\n}\n#if CC_USE_MORPH\n uniform vec4 cc_displacementWeights[15];\n uniform vec4 cc_displacementTextureInfo;\n #if CC_MORPH_TARGET_HAS_POSITION\n uniform sampler2D cc_PositionDisplacements;\n #endif\n #if CC_MORPH_TARGET_HAS_NORMAL\n uniform sampler2D cc_NormalDisplacements;\n #endif\n #if CC_MORPH_TARGET_HAS_TANGENT\n uniform sampler2D cc_TangentDisplacements;\n #endif\n vec2 getPixelLocation(vec2 textureResolution, int pixelIndex) {\n float pixelIndexF = float(pixe
|
||
|
|
"frag": "\n#ifdef GL_EXT_shader_texture_lod\n#extension GL_EXT_shader_texture_lod: enable\n#endif\nprecision highp float;\nuniform samplerCube cc_reflectionProbeCubemap;\nuniform sampler2D cc_reflectionProbePlanarMap;\nuniform sampler2D cc_reflectionProbeDataMap;\nuniform samplerCube cc_environment;\nvec4 fragTextureLod (sampler2D tex, vec2 coord, float lod) {\n #ifdef GL_EXT_shader_texture_lod\n return texture2DLodEXT(tex, coord, lod);\n #else\n return texture2D(tex, coord, lod);\n #endif\n}\nvec4 fragTextureLod (samplerCube tex, vec3 coord, float lod) {\n #ifdef GL_EXT_shader_texture_lod\n return textureCubeLodEXT(tex, coord, lod);\n #else\n return textureCube(tex, coord, lod);\n #endif\n}\nvec3 ACESToneMap (vec3 color) {\n color = min(color, vec3(8.0));\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\nvec3 LinearToSRGB(vec3 linear) {\n#ifdef CC_USE_SURFACE_SHADER\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (!IS_DEBUG_VIEW_COMPOSITE_ENABLE_GAMMA_CORRECTION) {\n return linear;\n }\n #endif\n#endif\n return sqrt(linear);\n}\nvec4 packRGBE (vec3 rgb) {\n highp float maxComp = max(max(rgb.r, rgb.g), rgb.b);\n highp float e = 128.0;\n if (maxComp > 0.0001) {\n e = log(maxComp) / log(1.1);\n e = ceil(e);\n e = clamp(e + 128.0, 0.0, 255.0);\n }\n highp float sc = 1.0 / pow(1.1, e - 128.0);\n vec3 encode = clamp(rgb * sc, vec3(0.0), vec3(1.0)) * 255.0;\n vec3 encode_rounded = floor(encode) + step(encode - floor(encode), vec3(0.5));\n return vec4(encode_rounded, e) / 255.0;\n}\nvec3 unpackRGBE (vec4 rgbe) {\n return rgbe.rgb * pow(1.1, rgbe.a * 255.0 - 128.0);\n}\nvec4 CCFragOutput (vec4 color) {\n #if CC_USE_RGBE_OUTPUT\n color = packRGBE(color.rgb);\n #elif !CC_USE_FLOAT_OUTPUT\n #if CC_USE_HDR && CC_TONE_MAPPING_TYPE == HDR_TONE_MAPPING_ACES\n color.rgb = ACESToneMap(color.rgb);\n #endif\n color.rgb = LinearToSRGB(color.rgb);\n #endif\n return color;\n}\nuniform highp vec4 cc_cameraPos;\n#if CC_USE_REFLECTION_PROBE\n varying mediump vec4 v_shadowBiasAndProbeId;\n#endif\nvarying mediump vec3 v_normal;\nvarying vec3 v_position;\nvec4 frag () {\n #if CC_USE_REFLECTION_PROBE\n if(v_shadowBiasAndProbeId.z < 0.0)\n {\n return vec4(1.0);\n }\n #endif\n vec3 V = normalize(cc_cameraPos.xyz - v_position);\n vec3 N = normalize(v_normal);\n vec3 R = normalize(reflect(-V, N));\n vec4 probe = fragTextureLod(cc_reflectionProbeCubemap, R, 0.0);\n vec4 finalColor = vec4(1.0);\n finalColor.rgb = unpackRGBE(probe);\n return CCFragOutput(finalColor);\n}\nvoid main() { gl_FragColor = frag(); }"
|
||
|
|
},
|
||
|
|
"builtins": {
|
||
|
|
"globals": {
|
||
|
|
"blocks": [
|
||
|
|
{
|
||
|
|
"name": "CCGlobal",
|
||
|
|
"defines": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CCCamera",
|
||
|
|
"defines": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"samplerTextures": [
|
||
|
|
{
|
||
|
|
"name": "cc_environment",
|
||
|
|
"defines": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"buffers": [],
|
||
|
|
"images": []
|
||
|
|
},
|
||
|
|
"locals": {
|
||
|
|
"blocks": [
|
||
|
|
{
|
||
|
|
"name": "CCMorph",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CCSkinningTexture",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING",
|
||
|
|
"CC_USE_BAKED_ANIMATION"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CCSkinningAnimation",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING",
|
||
|
|
"CC_USE_BAKED_ANIMATION"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CCSkinning",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING",
|
||
|
|
"!CC_USE_BAKED_ANIMATION",
|
||
|
|
"!CC_USE_REAL_TIME_JOINT_TEXTURE"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CCLocal",
|
||
|
|
"defines": [
|
||
|
|
"!USE_INSTANCING"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"samplerTextures": [
|
||
|
|
{
|
||
|
|
"name": "cc_PositionDisplacements",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH",
|
||
|
|
"CC_MORPH_TARGET_HAS_POSITION"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_NormalDisplacements",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH",
|
||
|
|
"CC_MORPH_TARGET_HAS_NORMAL"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_TangentDisplacements",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH",
|
||
|
|
"CC_MORPH_TARGET_HAS_TANGENT"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_jointTexture",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING",
|
||
|
|
"CC_USE_BAKED_ANIMATION"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_realtimeJoint",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING",
|
||
|
|
"!CC_USE_BAKED_ANIMATION",
|
||
|
|
"CC_USE_REAL_TIME_JOINT_TEXTURE"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_reflectionProbeCubemap",
|
||
|
|
"defines": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_reflectionProbePlanarMap",
|
||
|
|
"defines": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "cc_reflectionProbeDataMap",
|
||
|
|
"defines": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"buffers": [],
|
||
|
|
"images": []
|
||
|
|
},
|
||
|
|
"statistics": {
|
||
|
|
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 74,
|
||
|
|
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 42
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"defines": [
|
||
|
|
{
|
||
|
|
"name": "USE_INSTANCING",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [],
|
||
|
|
"editor": {
|
||
|
|
"elevated": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_SKINNING",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_BAKED_ANIMATION",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_LIGHTMAP",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_REFLECTION_PROBE",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_RECEIVE_SHADOW",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_LIGHT_PROBE",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"USE_INSTANCING"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_MORPH",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_MORPH_TARGET_COUNT",
|
||
|
|
"type": "number",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH"
|
||
|
|
],
|
||
|
|
"range": [
|
||
|
|
2,
|
||
|
|
8
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_MORPH_TARGET_HAS_POSITION",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_MORPH_TARGET_HAS_NORMAL",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_MORPH_TARGET_HAS_TANGENT",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_MORPH_PRECOMPUTED",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_MORPH"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_REAL_TIME_JOINT_TEXTURE",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_SKINNING",
|
||
|
|
"!CC_USE_BAKED_ANIMATION"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_IBL",
|
||
|
|
"type": "number",
|
||
|
|
"defines": [],
|
||
|
|
"range": [
|
||
|
|
0,
|
||
|
|
2
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_DEBUG_VIEW",
|
||
|
|
"type": "number",
|
||
|
|
"defines": [],
|
||
|
|
"range": [
|
||
|
|
0,
|
||
|
|
3
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_DEBUG_VIEW"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_SURFACES_ENABLE_DEBUG_VIEW",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_DEBUG_VIEW",
|
||
|
|
"CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_RGBE_OUTPUT",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_FLOAT_OUTPUT",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"!CC_USE_RGBE_OUTPUT"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_USE_HDR",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"!CC_USE_RGBE_OUTPUT",
|
||
|
|
"!CC_USE_FLOAT_OUTPUT"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "CC_TONE_MAPPING_TYPE",
|
||
|
|
"type": "number",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_HDR",
|
||
|
|
"!CC_USE_RGBE_OUTPUT",
|
||
|
|
"!CC_USE_FLOAT_OUTPUT"
|
||
|
|
],
|
||
|
|
"range": [
|
||
|
|
0,
|
||
|
|
3
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "HDR_TONE_MAPPING_ACES",
|
||
|
|
"type": "boolean",
|
||
|
|
"defines": [
|
||
|
|
"CC_USE_HDR",
|
||
|
|
"CC_TONE_MAPPING_TYPE",
|
||
|
|
"!CC_USE_RGBE_OUTPUT",
|
||
|
|
"!CC_USE_FLOAT_OUTPUT"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"name": "builtin-reflection-probe-preview|unlit-vs:vert|unlit-fs:frag"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"combinations": [
|
||
|
|
{},
|
||
|
|
{},
|
||
|
|
{}
|
||
|
|
],
|
||
|
|
"hideInEditor": false
|
||
|
|
}
|