DXGL r312 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r311‎ | r312 | r313 >
Date:20:42, 13 January 2013
Author:admin
Status:new
Tags:
Comment:
Directional lights in world space.
Update release version.
Modified paths:
  • /ReadMe.txt (modified) (history)
  • /common/releasever.h (modified) (history)
  • /ddraw/shadergen.cpp (modified) (history)

Diff [purge]

Index: ReadMe.txt
@@ -1,4 +1,4 @@
2 -DXGL 0.4.1
 2+DXGL 0.4.2
33 http://www.williamfeely.info/wiki/DXGL
44
55 == Introduction ==
Index: common/releasever.h
@@ -4,7 +4,7 @@
55
66 #define DXGLMAJORVER 0
77 #define DXGLMINORVER 4
8 -#define DXGLPOINTVER 1
 8+#define DXGLPOINTVER 2
99
1010 #define STR2(x) #x
1111 #define STR(x) STR2(x)
Index: ddraw/shadergen.cpp
@@ -358,7 +358,7 @@
359359 }\n";
360360 static const char func_spotlight[] = "void SpotLight(in Light light)\n\
361361 {\n\
362 -vec4 pos = (gl_ModelViewMatrix*xyzw);\n\
 362+vec4 pos = (matWorld*xyzw);\n\
363363 vec3 pos3 = pos.xyz / pos.w;\n\
364364 vec3 V = light.position - pos3;\n\
365365 float d = length(V);\n\