Skip to content

Commit

Permalink
fixed camera orbit for video texture examples
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Jun 19, 2013
1 parent 46677d4 commit c4712f8
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 57 deletions.
43 changes: 18 additions & 25 deletions examples/ex/texture/video/videoGlowMap.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,35 +40,28 @@

nodes:[
{
type:"lookAt",
eye:{ z:5 },

type:"material",
color:{ r:1.0, g:1.0, b:1.0 },
emit:1.0,
nodes:[
{
type:"material",
color:{ r:1.0, g:1.0, b:1.0 },
emit:1.0,
type:"texture",
id:"theTexture",
layers:[
{
source:{
type:"video",
src:"../../../movies/testVideo.ogv"
},
applyTo:"emit"
}
],
nodes:[
{
type:"texture",
id:"theTexture",
layers:[
{
source:{
type:"video",
src:"../../../movies/testVideo.ogv"
},
applyTo:"emit"
}
],
nodes:[
{
type:"geometry",
source:{
type:"box"
}
}
]
type:"geometry",
source:{
type:"box"
}
}
]
}
Expand Down
57 changes: 25 additions & 32 deletions examples/ex/texture/video/videoSpecularMap.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,49 +42,42 @@
diffuse:true,
specular:true,
dir:{ x:0.5, y:0.5, z:-1.0 },
space: "view"
space:"view"
}
],

nodes:[
{
type:"lookAt",
eye:{ z:5 },

type:"flags",
flags:{
transparent:true
},
nodes:[
{
type:"flags",
flags:{
transparent:true
},
type:"material",
color:{ r:0.5, g:0.5, b:0.6 },
specularColor:{ r:0.7, g:0.7, b:0.8 },
specular:10.0,
shine:5.0,
nodes:[
{
type:"material",
color:{ r:0.5, g:0.5, b:0.6 },
specularColor:{ r:0.7, g:0.7, b:0.8 },
specular:10.0,
shine:5.0,
type:"texture",
id:"theTexture",
layers:[
{
source:{
type:"video",
src:"../../../movies/testVideo.ogv"
},
applyTo:"specular"
}
],
nodes:[
{
type:"texture",
id:"theTexture",
layers:[
{
source:{
type:"video",
src:"../../../movies/testVideo.ogv"
},
applyTo:"specular"
}
],
nodes:[
{
type:"geometry",
source:{
type:"box"
}
}
]
type:"geometry",
source:{
type:"box"
}
}
]
}
Expand Down

0 comments on commit c4712f8

Please sign in to comment.