DXGL r312 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
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
3
3
http://www.williamfeely.info/wiki/DXGL
4
4
5
5
== Introduction ==
Index: common/releasever.h
—
—
@@ -4,7 +4,7 @@
5
5
6
6
#define DXGLMAJORVER 0
7
7
#define DXGLMINORVER 4
8
-#define DXGLPOINTVER 1
8
+#define DXGLPOINTVER 2
9
9
10
10
#define STR2(x) #x
11
11
#define STR(x) STR2(x)
Index: ddraw/shadergen.cpp
—
—
@@ -358,7 +358,7 @@
359
359
}\n";
360
360
static const char func_spotlight[] = "void SpotLight(in Light light)\n\
361
361
{\n\
362
-vec4 pos = (gl_ModelViewMatrix*xyzw);\n\
362
+vec4 pos = (matWorld*xyzw);\n\
363
363
vec3 pos3 = pos.xyz / pos.w;\n\
364
364
vec3 V = light.position - pos3;\n\
365
365
float d = length(V);\n\
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version