Skip to content

Commit

Permalink
Rename flatshading
Browse files Browse the repository at this point in the history
  • Loading branch information
tsherif committed Apr 9, 2019
1 parent 9ca8ef2 commit 1510b6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -6,7 +6,7 @@ precision highp float;
uniform bool hasTexture;
uniform sampler2D sampler;
uniform vec4 color;
uniform bool flatShade;
uniform bool flatShading;
in vec2 vTexCoord;
in vec3 cameraPosition;
Expand All @@ -18,7 +18,7 @@ out vec4 fragColor;
void main(void) {
vec3 normal;
if (flatShade) {
if (flatShading) {
normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));
} else {
normal = normals_commonspace;
Expand Down
Expand Up @@ -6,7 +6,7 @@ precision highp float;
uniform bool hasTexture;
uniform sampler2D sampler;
uniform vec4 color;
uniform bool flatShade;
uniform bool flatShading;
varying vec2 vTexCoord;
varying vec3 cameraPosition;
Expand All @@ -16,7 +16,7 @@ varying vec4 vColor;
void main(void) {
vec3 normal;
if (flatShade) {
if (flatShading) {
normal = normalize(cross(dFdx(position_commonspace.xyz), dFdy(position_commonspace.xyz)));
} else {
normal = normals_commonspace;
Expand Down

0 comments on commit 1510b6f

Please sign in to comment.