comparison dragon.scene @ 32:1215fdd0a8ab

Add support for specifying specular and shininess values per model.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 22 Nov 2019 22:57:14 +0200
parents 2403030a0352
children
comparison
equal deleted inserted replaced
31:6847715b46cd 32:1215fdd0a8ab
1 # Dragon model with 2 lights
2 # all settings have default values which will be used
3 # if they are not overridden / specified for the element
1 model dragon.ply 4 model dragon.ply
5 specular 0.8 0.5 0.2
6 shininess 96
7 #scale 1 1 0.1
8
9 #model models/cube.ply
10 # scale 0.015
11 # translate -3 7 0
12 # rotate 0 0 0
13 # specular 0 1 0
14 # shininess 3
15
2 16
3 light 17 light
4 position 10 10 0.0 18 position 10 10 0.0
19 #ambient 0
20 #diffuse 0 0.3 0.3
5 21
6 light 22 light
23 position -50 50 0
7 diffuse 1.0 0 0 24 diffuse 1.0 0 0
8 position -50 50 0 25 ambient 0.1 0.1 0