view dragon.scene @ 42:3c7e1d3fa5a2

Implement OpengL extension handling through new header file dmglexts.h to "define" the entrypoints we require and some wonderful preprocessor macro magic to add checks for them via SDL_GL_ExtensionSupported() and initialize function pointers with SDL_GL_GetProcAddress().
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Dec 2019 21:05:43 +0200
parents 1215fdd0a8ab
children
line wrap: on
line source

# Dragon model with 2 lights
# all settings have default values which will be used
# if they are not overridden / specified for the element
model dragon.ply
	specular 0.8 0.5 0.2
	shininess 96
	#scale 1 1 0.1

#model models/cube.ply
#	scale 0.015
#	translate -3 7 0
#	rotate 0 0 0
#	specular 0 1 0
#	shininess 3


light
	position 10 10 0.0
	#ambient 0
	#diffuse 0 0.3 0.3

light
	position -50 50 0
	diffuse 1.0 0 0
	ambient 0.1 0.1 0