Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
ee4eb53
commit d7a363c
Showing
2 changed files
with
42 additions
and
6 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
28 changes: 28 additions & 0 deletions
28
jme3-core/src/main/resources/Common/MatDefs/Misc/SkyNonCube.j3md
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,28 @@ | ||
MaterialDef Sky Plane { | ||
MaterialParameters { | ||
Texture2D Texture | ||
Boolean SphereMap | ||
Boolean EquirectMap | ||
Vector3 NormalScale | ||
} | ||
Technique { | ||
VertexShader GLSL100 GLSL150: Common/MatDefs/Misc/Sky.vert | ||
FragmentShader GLSL100 GLSL150: Common/MatDefs/Misc/Sky.frag | ||
|
||
WorldParameters { | ||
ViewMatrix | ||
ProjectionMatrix | ||
WorldMatrixInverse | ||
} | ||
|
||
Defines { | ||
SPHERE_MAP : SphereMap | ||
EQUIRECT_MAP : EquirectMap | ||
} | ||
|
||
RenderState { | ||
DepthWrite Off | ||
DepthFunc Equal | ||
} | ||
} | ||
} |