Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Ignacio Esteban Losiggio
fcg_tp5
Commits
ba185ee4
Commit
ba185ee4
authored
3 years ago
by
Ignacio Esteban Losiggio
Committed by
BuildTools
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Multiplicar la luz especular por el coeficiente de la luz difusa
parent
23100318
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ejercicio.js
ejercicio.js
+1
-1
No files found.
ejercicio.js
View file @
ba185ee4
...
...
@@ -357,7 +357,7 @@ var meshFS = `
}
vec4 color = light_intensity * (K_diffuse * max(0.0, cos_theta)
+ K_shininess * pow(max(0.0, cos_specular), shininess));
+ K_shininess *
max(0.0, cos_theta) *
pow(max(0.0, cos_specular), shininess));
color.w = 1.0;
gl_FragColor = color;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment