event stuff working again. a bit too much boiler plate code but functionality counts.
This commit is contained in:
parent
2d0608b205
commit
becf8602d7
18 changed files with 235 additions and 149 deletions
|
|
@ -36,7 +36,7 @@ void main()
|
|||
|
||||
int i;
|
||||
for (i=0; i<explLightsNum; i++) {
|
||||
vec3 explLightColor = vec3(1.0, 0.8, 0.3);
|
||||
vec3 explLightColor = vec3(1.0, 0.5, 0.2);
|
||||
vec3 diff = vertex - explLightsPos[i];
|
||||
float l = 10.0*length(diff);
|
||||
float dir = max(0.0, -dot(normal, diff));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue