git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8349 75d07b2b-3a1a-0410-a2c5-0572b91ccdca3.0
parent
19597f2c1f
commit
7492410485
@ -0,0 +1,7 @@ |
||||
uniform sampler3D m_Texture; |
||||
|
||||
varying vec3 texCoord; |
||||
|
||||
void main(){ |
||||
gl_FragColor= texture3D(m_Texture,texCoord); |
||||
} |
@ -0,0 +1,16 @@ |
||||
MaterialDef My MaterialDef { |
||||
|
||||
MaterialParameters { |
||||
Texture3D Texture |
||||
} |
||||
|
||||
Technique { |
||||
VertexShader GLSL100: jme3test/texture/tex3D.vert |
||||
FragmentShader GLSL100: jme3test/texture/tex3D.frag |
||||
|
||||
WorldParameters { |
||||
WorldViewProjectionMatrix |
||||
} |
||||
} |
||||
|
||||
} |
@ -0,0 +1,11 @@ |
||||
uniform mat4 g_WorldViewProjectionMatrix; |
||||
|
||||
attribute vec3 inTexCoord; |
||||
attribute vec3 inPosition; |
||||
|
||||
varying vec3 texCoord; |
||||
|
||||
void main(){ |
||||
gl_Position = g_WorldViewProjectionMatrix * vec4(inPosition,1.0); |
||||
texCoord=inTexCoord; |
||||
} |
Loading…
Reference in new issue