-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MP: fixed normal problem with shader
- Loading branch information
Showing
6 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#version $GLSL_VERSION_STR | ||
$GLSL_DEFAULT_PRECISION_FLOAT | ||
|
||
#pragma vp_entryPoint "oe_mp_vertModel" | ||
#pragma vp_location "vertex_model" | ||
#pragma vp_order "-FLT_MAX" | ||
|
||
varying vec4 oe_layer_texc; | ||
varying vec4 oe_layer_tilec; | ||
|
||
void oe_mp_vertModel(inout vec4 vertexModel) | ||
{ | ||
oe_layer_texc = gl_MultiTexCoord$MP_PRIMARY_UNIT; | ||
oe_layer_tilec = gl_MultiTexCoord$MP_SECONDARY_UNIT; | ||
} |
9 changes: 2 additions & 7 deletions
9
...EarthDrivers/engine_mp/MPEngine.vert.glsl → ...Drivers/engine_mp/MPEngine.vert.view.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters