| 1 |
{ -*- buffer-read-only: t -*- } |
| 2 |
{ DON'T EDIT -- this file was automatically generated from "source/lighting_model_unlit/shading_phong.fs" } |
| 3 |
'uniform vec4 castle_MaterialEmissiveAlpha;' + LineEnding + |
| 4 |
'' + LineEnding + |
| 5 |
'void calculate_lighting(out vec4 result, const in vec4 vertex_eye, const in vec3 normal_eye)' + LineEnding + |
| 6 |
'{' + LineEnding + |
| 7 |
' /* In case of UnlitMaterial, Color/ColorRGBA replaces emissive color.*/' + LineEnding + |
| 8 |
' result = castle_apply_color_per_vertex(castle_MaterialEmissiveAlpha);' + LineEnding + |
| 9 |
'' + LineEnding + |
| 10 |
' /* In case of UnlitMaterial, main texture (emissiveTexture or Appearance.texture)' + LineEnding + |
| 11 |
' is mixed with emissive color. */' + LineEnding + |
| 12 |
' main_texture_apply(result, normal_eye);' + LineEnding + |
| 13 |
'}' + LineEnding + |
| 14 |
'' |