mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
Merge pull request #1703 from pgruenbacher/master
simple fixe for shading language
This commit is contained in:
@@ -769,7 +769,7 @@ happen later, though) with the following code, so it can be done manually:
|
||||
void vertex() {
|
||||
|
||||
VERTEX = (MODELVIEW_MATRIX * vec4(VERTEX, 1.0)).xyz;
|
||||
NORMAL = (MODELVIEW_MATRIX * vec4(VERTEX, 0.0)).xyz;
|
||||
NORMAL = (MODELVIEW_MATRIX * vec4(NORMAL, 0.0)).xyz;
|
||||
// same as above for binormal and tangent, if normal mapping is used
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user