1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| CCEffect %{ techniques: - name: complete-toon passes: - vert: outline-vs:vert frag: outline-fs:frag rasterizerState: cullMode: front depthStencilState: depthTest: true depthWrite: true properties: &outline-props outlineWidth: { value: 0.02, editor: { range: [0, 0.1] } } outlineColor: { value: [0, 0, 0, 1], editor: { type: color } } - vert: toon-vs:vert frag: toon-fs:frag rasterizerState: cullMode: back depthStencilState: depthTest: true depthWrite: true properties: &toon-props mainTexture: { value: white } rampTexture: { value: white } mainColor: { value: [1, 1, 1, 1], editor: { type: color } } shadowColor: { value: [0.5, 0.5, 0.8, 1], editor: { type: color } } specularColor: { value: [1, 1, 1, 1], editor: { type: color } } lightLevels: { value: 3, editor: { range: [2, 8], step: 1 } } specularThreshold: { value: 0.9, editor: { range: [0, 1] } } specularSoftness: { value: 0.1, editor: { range: [0, 0.5] } } rimLightColor: { value: [1, 1, 1, 1], editor: { type: color } } rimLightPower: { value: 2.0, editor: { range: [0, 10] } } }%
|