Added sponza link
This commit is contained in:
8
controllers/prototype/index.js
vendored
8
controllers/prototype/index.js
vendored
@@ -88,6 +88,14 @@ module.exports.arrows = protoHelper('prototype_arrows.jade');
|
||||
module.exports.viewports = protoHelper('prototype_viewports.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) {
|
||||
res.setHeader('Content-Type', 'text/plain');
|
||||
|
||||
|
||||
3
controllers/prototype/urls.js
vendored
3
controllers/prototype/urls.js
vendored
@@ -6,5 +6,6 @@ module.exports = {
|
||||
'/prototype/replay': 'replay_index',
|
||||
'/prototype/replay/:id': 'replay',
|
||||
'/prototype/replay_info/:id': 'replay_info',
|
||||
'/prototype/tutorial': 'tutorial'
|
||||
'/prototype/tutorial': 'tutorial',
|
||||
'/prototype/sponza': 'sponza'
|
||||
}
|
||||
|
||||
17
controllers/prototype/views/sponza.jade
Normal file
17
controllers/prototype/views/sponza.jade
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user