bug.zip (12.0 KB)
版本:3.8.2
如图:
highlightMaskMap、highlightColor、normalMap 全都没有显示出来
effect里面定义了没有,effect发出来看看
定义了,附件资源里面有
CCEffect %{
techniques:
- name: opaque
passes:
- vert: standard-vs
frag: standard-fs
properties: &props
uvScale: { value: [1.0, 1.0], target: uvTransform.xy, editor: { displayName: UV 缩放 } }
mainTexture: { value: grey, target: albedoMap, editor: { displayName: AlbedoMap } }
mainColor: { value: [1.0, 1.0, 1.0, 1.0], target: albedo, linear: true, editor: { displayName: Albedo, type: color } }
albedoScale: { value: [1.0, 1.0, 1.0], target: albedoScaleAndCutoff.xyz }
alphaThreshold: { value: 0.5, target: albedoScaleAndCutoff.w, editor: { parent: USE_ALPHA_TEST, slide: true, range: [0, 1.0], step: 0.001 } }
normalMap: { value: normal, target: normalMap, editor: { displayName: NormalMap } }
normalStrength: { value: 1.0, target: emissiveScaleParam.w, editor: { parent: USE_NORMAL_MAP, slide: true, range: [0, 5.0], step: 0.001 } }
roughness: { value: 0.8, target: pbrParams.y, editor: { slide: true, range: [0, 1.0], step: 0.001 } }
metallic: { value: 0.6, target: pbrParams.z, editor: { slide: true, range: [0, 1.0], step: 0.001 } }
highlightMaskMap: { value: black, target: highlightMaskMap, editor: { displayName: 高亮遮罩贴图 } }
highlightColor: { value: [1.0, 1.0, 1.0, 1.0], target: highlightColor, linear: true, editor: { displayName: 高亮颜色, type: color } }
highlightURange: { value: [0.0, 0.0], target: highlightRange.xy, editor: { displayName: 高亮 U 范围 } }
highlightVRange: { value: [0.0, 0.0], target: highlightRange.zw, editor: { displayName: 高亮 V 范围 } }
这些变量名感觉很眼熟, 给这些变量换个名字试试呢