Verified Commit 77131c7b authored by insert's avatar insert

Fix bug

parent 60aabbb0
...@@ -11,8 +11,10 @@ in vec3 fNormal; ...@@ -11,8 +11,10 @@ in vec3 fNormal;
struct Material { struct Material {
{% if diffuse == "Colour" %} vec3 {% else %} sampler2D {% endif %} diffuse; {% if diffuse == "Colour" %} vec3 {% else %} sampler2D {% endif %} diffuse;
{% if lighting.specular == "Colour" %} vec3 {% else %} sampler2D {% endif %} specular; {% if lighting %}
float shininess; {% if lighting.specular == "Colour" %} vec3 {% else %} sampler2D {% endif %} specular;
float shininess;
{% endif %}
}; };
uniform Material material; uniform Material material;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment