<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>

<geexlab>
	
  <window name="win3d01" title="PhysX 4 - Rigid Body + Joint" 
          width="1280" height="720" 
          gl_version_major="3" gl_version_minor="2" />
  
   
  
	<script name="init_scene" run_mode="INIT" language="LUA" filename="init.lua" />
  
	<script name="update_scene" run_mode="FRAME" language="LUA" filename="frame.lua" />
	




	<script name="terminate_scene" run_mode="TERMINATE" >
		<raw_data><![CDATA[	

gh_physx4.stop()
gh_utils.trace("PhysX 4 stopped ok.")

gh_imgui.terminate()
  
		]]></raw_data>
	</script> 





  
	<script name="resize_scene" run_mode="SIZE" >
		<raw_data><![CDATA[	

winW, winH = gh_window.getsize(0)

gx_camera.update_perspective(camera, 60, 1, 0, 0, winW, winH, 0.1, 1000)

gh_camera.update_ortho(camera_ortho, -winW/2, winW/2, -winH/2, winH/2, 1.0, 10.0)
gh_camera.set_viewport(camera_ortho, 0, 0, winW, winH)

		]]></raw_data>
	</script> 
  







  <gpu_program name="texture_prog" >
    <raw_data_vs><![CDATA[	 
#version 120
uniform vec4 uvtiling;    
void main()
{
  gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;		
  gl_TexCoord[0] = gl_MultiTexCoord0 * uvtiling;
}
  ]]></raw_data_vs>
    <raw_data_ps><![CDATA[	 
#version 120
uniform sampler2D tex0;
void main (void)
{
  vec2 uv = gl_TexCoord[0].xy;
  uv.y *= -1.0;
  vec4 t = texture2D(tex0,uv).rgba;
  gl_FragColor = t;
}
    ]]></raw_data_ps>
  </gpu_program>
  

  
</geexlab>
