DXGL r187 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r186‎ | r187 | r188 >
Date:16:33, 29 June 2012
Author:admin
Status:new
Tags:
Comment:
Tweak specular lighting.
Release 0.2.3
Modified paths:
  • /ReadMe.txt (modified) (history)
  • /common/version.h (modified) (history)
  • /common/version.nsh (modified) (history)
  • /ddraw/shadergen.cpp (modified) (history)

Diff [purge]

Index: ReadMe.txt
@@ -1,4 +1,4 @@
2 -DXGL 0.2.1
 2+DXGL 0.2.3
33 http://www.williamfeely.info/wiki/DXGL
44
55 == Introduction ==
Index: common/version.h
@@ -4,12 +4,12 @@
55
66 #define DXGLMAJOR 0
77 #define DXGLMINOR 2
8 -#define DXGLPOINT 2
 8+#define DXGLPOINT 3
99 #define DXGLBUILD 0
1010
1111 #define DXGLVERNUMBER DXGLMAJOR,DXGLMINOR,DXGLPOINT,DXGLBUILD
1212 #define DXGLVERQWORD (((unsigned __int64)DXGLMAJOR<<48)+((unsigned __int64)DXGLMINOR<<32)+((unsigned __int64)DXGLPOINT<<16)+(unsigned __int64)DXGLBUILD)
13 -#define DXGLVERSTRING "0.2.2.0"
 13+#define DXGLVERSTRING "0.2.3.0"
1414
1515
1616 #endif //__VERSION_H
Index: common/version.nsh
@@ -1 +1 @@
2 -!define PRODUCT_VERSION "0.2.2"
\ No newline at end of file
 2+!define PRODUCT_VERSION "0.2.3"
\ No newline at end of file
Index: ddraw/shadergen.cpp
@@ -286,7 +286,8 @@
287287 static const char op_dirlight[] = "DirLight(lightX);\n";
288288 static const char op_pointlight[] = "PointLight(lightX);\n";
289289 static const char op_spotlight[] = "SpotLight(lightX);\n";
290 -static const char op_colorout[] = "gl_FrontColor = (material.diffuse * diffuse) + (material.ambient * ambient) + material.emissive;\n\
 290+static const char op_colorout[] = "gl_FrontColor = (material.diffuse * diffuse) + (material.ambient * ambient)\n\
 291++ (material.specular * specular) + material.emissive;\n\
291292 gl_FrontSecondaryColor = (material.specular * specular);\n";
292293 static const char op_colorvert[] = "gl_FrontColor = rgba0.bgra;\n";
293294 static const char op_color2vert[] = "gl_FrontSecondaryColor = rgba1.bgra;\n";