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

<!--

User clip planes in modern OpenGL.
Based on: http://github.prideout.net/clip-planes/

-->


<geexlab>
	
  <window name="win3d01" title="User Clip Planes" 
          width="800" height="400" 
          gl_version_major="3" gl_version_minor="2" />
  
  
<!--
- https://www.opengl.org/sdk/docs/man/html/gl_ClipDistance.xhtml
-->  
  <gpu_program name="clip_plane_prog" 
               filename_vs="shaders/clip_plane_vs.txt" livecoding_vs="1" 
               filename_gs="shaders/clip_plane_gs.txt" livecoding_gs="1" 
               filename_ps="shaders/clip_plane_ps.txt" livecoding_ps="1" />


  
  
	<script name="init_scene" run_mode="INIT" filename="init.lua" />

	<script name="update_scene" run_mode="FRAME" filename="frame.lua" />



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

winW, winH = gh_window.getsize(0)

local aspect = 1.333
if (winH > 0) then
  aspect = winW / winH
end  
gh_camera.update_persp(camera, 60, aspect, 0.1, 1000.0)
gh_camera.set_viewport(camera, 0, 0, winW, winH)

		]]></raw_data>
	</script> 



  
</geexlab>
