Fixed little bug

This commit is contained in:
victorfisac 2017-07-15 16:44:56 +02:00
commit 2b5bdc0324

View file

@ -74,7 +74,7 @@ vec2 ParallaxMapping(vec2 texCoords, vec3 viewDir);
vec3 ComputeMaterialProperty(MaterialProperty property)
{
vec result = vec3(0.0, 0.0, 0.0);
vec3 result = vec3(0.0, 0.0, 0.0);
if (property.useSampler == 1) result = texture(property.sampler, texCoord).rgb;
else result = property.color;