Changeset 1339


Ignore:
Timestamp:
May 4, 2012, 1:39:07 PM (11 years ago)
Author:
sam
Message:

orbital: fix shader compilation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/mesh.h

    r1338 r1339  
    112112            "    float sdotn = max(dot(s, tnorm), 0.0);"
    113113            "    vec3 diffuse = diffuse_color * sdotn;"
    114             "    vec3 specular = vec3(0.0);"
     114            "    vec3 specular = vec3(0.0, 0.0, 0.0);"
    115115            "    if (sdotn > 0.0)"
    116116            "        specular = specular_color * specular_reflect"
     
    153153            "    float sdotn = max(dot(s, tnorm), 0.0);"
    154154            "    float3 diffuse = diffuse_color * sdotn;"
    155             "    float3 specular = float3(0.0);"
     155            "    float3 specular = float3(0.0, 0.0, 0.0);"
    156156            "    if (sdotn > 0.0)"
    157157            "        specular = specular_color * specular_reflect"
Note: See TracChangeset for help on using the changeset viewer.