fixed formatting of a few GLSL float constants

remove unneeded version number from texturecolor shader
call GLSL_VertexAttribPointers after attribute arrays have been enabled
This commit is contained in:
Anthony Pesch committed 2014-01-11 17:43:19 -08:00
1 parent 4520857fc9
commit 25bde423b5
4 files changed
+118 -123

No files matched your search

+1 -1
View File
@@ -160,7 +160,7 @@ vec3 EnvironmentBRDF(float gloss, float NE, vec3 specular)
{
#if 1
// from http://blog.selfshadow.com/publications/s2013-shading-course/lazarov/s2013_pbs_black_ops_2_notes.pdf
vec4 t = vec4( 1/0.96, 0.475, (0.0275 - 0.25 * 0.04)/0.96,0.25 ) * gloss;
vec4 t = vec4( 1.0/0.96, 0.475, (0.0275 - 0.25 * 0.04)/0.96,0.25 ) * gloss;
t += vec4( 0.0, 0.0, (0.015 - 0.75 * 0.04)/0.96,0.75 );
float a0 = t.x * min( t.y, exp2( -9.28 * NE ) ) + t.z;
float a1 = t.w;
@@ -1,5 +1,3 @@
#version 120
uniform sampler2D u_DiffuseMap;
uniform vec4 u_Color;
@@ -1,5 +1,3 @@
#version 120
attribute vec3 attr_Position;
attribute vec4 attr_TexCoord0;