Fix glsl DEFORM_BULGE calculation

This commit is contained in:
cmf028 2013-12-01 21:19:26 -06:00
parent 82be4e667f
commit e01b66aef5
4 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ vec3 DeformPosition(const vec3 pos, const vec3 normal, const vec2 st)
if (u_DeformGen == DGEN_BULGE) if (u_DeformGen == DGEN_BULGE)
{ {
phase *= M_PI * 0.25 * st.x; phase *= st.x;
} }
else // if (u_DeformGen <= DGEN_WAVE_INVERSE_SAWTOOTH) else // if (u_DeformGen <= DGEN_WAVE_INVERSE_SAWTOOTH)
{ {

View File

@ -41,7 +41,7 @@ vec3 DeformPosition(const vec3 pos, const vec3 normal, const vec2 st)
if (u_DeformGen == DGEN_BULGE) if (u_DeformGen == DGEN_BULGE)
{ {
phase *= M_PI * 0.25 * st.x; phase *= st.x;
} }
else // if (u_DeformGen <= DGEN_WAVE_INVERSE_SAWTOOTH) else // if (u_DeformGen <= DGEN_WAVE_INVERSE_SAWTOOTH)
{ {

View File

@ -73,7 +73,7 @@ vec3 DeformPosition(const vec3 pos, const vec3 normal, const vec2 st)
if (u_DeformGen == DGEN_BULGE) if (u_DeformGen == DGEN_BULGE)
{ {
phase *= M_PI * 0.25 * st.x; phase *= st.x;
} }
else // if (u_DeformGen <= DGEN_WAVE_INVERSE_SAWTOOTH) else // if (u_DeformGen <= DGEN_WAVE_INVERSE_SAWTOOTH)
{ {

View File

@ -38,7 +38,7 @@ vec3 DeformPosition(const vec3 pos, const vec3 normal, const vec2 st)
if (u_DeformGen == DGEN_BULGE) if (u_DeformGen == DGEN_BULGE)
{ {
phase *= M_PI * 0.25 * st.x; phase *= st.x;
} }
else // if (u_DeformGen <= DGEN_WAVE_INVERSE_SAWTOOTH) else // if (u_DeformGen <= DGEN_WAVE_INVERSE_SAWTOOTH)
{ {