Added sponza link
This commit is contained in:
parent
365d29bd3d
commit
44f3d37ccb
|
@ -88,6 +88,14 @@ module.exports.arrows = protoHelper('prototype_arrows.jade');
|
||||||
module.exports.viewports = protoHelper('prototype_viewports.jade');
|
module.exports.viewports = protoHelper('prototype_viewports.jade');
|
||||||
module.exports.reverse = protoHelper('prototype_reverse.jade');
|
module.exports.reverse = protoHelper('prototype_reverse.jade');
|
||||||
|
|
||||||
|
module.exports.sponza = function(req, res) {
|
||||||
|
res.setHeader('Content-Type', 'text/html');
|
||||||
|
|
||||||
|
res.render('sponza.jade', res.locals, function(err, result) {
|
||||||
|
res.send(result);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
module.exports.replay_info = function(req, res) {
|
module.exports.replay_info = function(req, res) {
|
||||||
res.setHeader('Content-Type', 'text/plain');
|
res.setHeader('Content-Type', 'text/plain');
|
||||||
|
|
||||||
|
|
|
@ -6,5 +6,6 @@ module.exports = {
|
||||||
'/prototype/replay': 'replay_index',
|
'/prototype/replay': 'replay_index',
|
||||||
'/prototype/replay/:id': 'replay',
|
'/prototype/replay/:id': 'replay',
|
||||||
'/prototype/replay_info/:id': 'replay_info',
|
'/prototype/replay_info/:id': 'replay_info',
|
||||||
'/prototype/tutorial': 'tutorial'
|
'/prototype/tutorial': 'tutorial',
|
||||||
|
'/prototype/sponza': 'sponza'
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
extends ./prototype_interactive
|
||||||
|
|
||||||
|
block title
|
||||||
|
title #{title} - Prototype - Arrows
|
||||||
|
|
||||||
|
block mainjs
|
||||||
|
script(src="/static/js/sponza.min.js")
|
||||||
|
|
||||||
|
block configjs
|
||||||
|
script RecommendedCamera = FixedCamera;
|
||||||
|
|
||||||
|
//-block preciseDescription
|
||||||
|
p
|
||||||
|
| Recommended views are displayed with a
|
||||||
|
| transparent blue arrow. They disappear when you
|
||||||
|
| come closer to them, and shows the motion between
|
||||||
|
| your current position and the recommendation.
|
|
@ -6,7 +6,7 @@ else
|
||||||
CLOSURE=./compiler.sh
|
CLOSURE=./compiler.sh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: List ListTest Socket Three Stats ThreeTools Bouncing Multisphere StreamingSimulator PrototypeTools PrototypeReplay PrototypeInteractive Tutorial
|
all: List ListTest Socket Three Stats ThreeTools Bouncing Multisphere StreamingSimulator PrototypeTools PrototypeReplay PrototypeInteractive Tutorial Sponza
|
||||||
|
|
||||||
Socket:
|
Socket:
|
||||||
cp socket.io/socket.io.min.js ../static/js
|
cp socket.io/socket.io.min.js ../static/js
|
||||||
|
@ -104,5 +104,10 @@ Tutorial:
|
||||||
--js prototype/tutorial.js \
|
--js prototype/tutorial.js \
|
||||||
--js_output_file ../static/js/tutorial.min.js
|
--js_output_file ../static/js/tutorial.min.js
|
||||||
|
|
||||||
|
Sponza:
|
||||||
|
$(CLOSURE) $(OPT) \
|
||||||
|
--js prototype/sponza.js \
|
||||||
|
--js_output_file ../static/js/sponza.min.js
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ../static/js/*
|
rm -rf ../static/js/*
|
||||||
|
|
Loading…
Reference in New Issue