Updated shaders with comments
This commit is contained in:
parent
0e29aa2951
commit
bc08271da3
34 changed files with 294 additions and 158 deletions
|
@ -17,7 +17,7 @@ void main()
|
|||
{
|
||||
vec4 sum = vec4(0);
|
||||
vec4 tc = vec4(0);
|
||||
|
||||
|
||||
for (int i = -4; i < 4; i++)
|
||||
{
|
||||
for (int j = -3; j < 3; j++)
|
||||
|
|
|
@ -29,6 +29,9 @@ uniform float matGlossiness = 50.0;
|
|||
uniform vec3 lightPosition;
|
||||
uniform vec3 cameraPosition;
|
||||
|
||||
// Fragment shader output data
|
||||
out vec4 fragColor;
|
||||
|
||||
// Calculate ambient lighting component
|
||||
vec3 AmbientLighting()
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@ float angle = 0.8;
|
|||
|
||||
uniform vec2 center = vec2(200.0, 200.0);
|
||||
|
||||
void main (void)
|
||||
void main()
|
||||
{
|
||||
vec2 texSize = vec2(renderWidth, renderHeight);
|
||||
vec2 tc = fragTexCoord*texSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue