Source

Unofficial OpenGL SDK / glscene / Test / test.glscene


resources
	sampler_res <spl>
		mag [linear]
		compare [pass]
		aniso 1
	end
	
	uniform_res <ident> {uniformName} [vec3] (-5.0)
	
	camera_res <ident> [left_btn] [left_kbd]
		target (0 -5 0)
		orient (0 0 0 1)
		spin 0
		radius 10 1 20
		radius_delta 0.5 2.0
		pos_delta 0.25 1.5
		rotation_scale 0.36
	end
	
	uniform_buffer_res <ident> 64 [stream_draw]
	storage_buffer_res <ident> 128 placeholder

	program_res <ident>
		vert "filename.vert"
		nmtc {blah2}
		sampler {foo} 0
		sampler {false} 1
		image {boo} 2
		mtc {blah}
	end
	
	mesh_res <ident> [ground_plane] 3 20
	texture_res <tex> "foo.file[ground_plane]"
end

scene
	layer_defs 'foo' 'bar'
	style_check <id> <blabal> <bol>
	
	node <foo>
		layers 'foo' -'bar' +'bar' +-'foo'
		
		object_tm
			translate (4)
			scale (1)
			orientation (0 0.707 0 0.707)
			matrix (1)
		end
		
		local <ident>
		end
		
		style <id>
		end
		
		node <ident>
			local <ident2>
			end

			style <id>
				using <ident2>
				
				mesh <ident>
				texture 0 <tex> <spl>
			end
		end
		
		node
			style <id>
			end
		end
	end
end