Beispiel #1
0
$title = "Demo 4";
$path = realpath($_SERVER["DOCUMENT_ROOT"]) . "/";
include_once $path . "php/head.php";
?>
	<link rel="stylesheet" type="text/css" href="style.css" >
<?php 
$color1 = 280;
include_once $path . "php/header.php";
include_once $path . "php/demo.php";
$demo = new Demo();
?>
	
	<div class="project">
		<article class="align_nav">
			<?php 
$demo->draw("../../project/carted3", $color1, $title);
?>
		</article>
	</div>

	<div id="main" class="clearfix">

		<p id="noWebgl">Votre carte graphique ou votre navigateur ne supporte pas webgl. <br/>Vous pouvez essayer d'utiliser firefox ou rester sur la version 2d de la carte.</p>

		<div id="control_mode">
			<button class="btn_mode" id="btn_2d" type="button">2d</button>
			<button class="btn_mode" id="btn_3d" type="button">3d</button>
			<button class="btn_mode" id="btn_in" type="button">zoom +</button>
			<button class="btn_mode" id="btn_out" type="button">zoom -</button>
			<p id="btn_reset">reset</p>
			<div id="btn_rotation">
Beispiel #2
0
$path = realpath($_SERVER["DOCUMENT_ROOT"]) . "/";
include_once $path . "php/head.php";
?>
	<link rel="stylesheet" href="style.css" type="text/css">
<?php 
$color1 = 280;
include_once $path . "php/header.php";
include_once $path . "php/demo.php";
$demo = new Demo();
?>
		
		<div class="project">
		
		<article class="align_nav">
			<?php 
$demo->draw("../../project/carted3", $color1, "Version 1");
?>
		</article>

		<script type="x-shader/x-vertex" id="vertexShader">

			varying vec2 vUv;

			void main() {

				vUv  = uv;
				gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

			}

		</script>
Beispiel #3
0
<?php

$title = "Demo 4";
$path = realpath($_SERVER["DOCUMENT_ROOT"]) . "/";
include_once $path . "php/head.php";
$color1 = 280;
include_once $path . "php/header.php";
include_once $path . "php/demo.php";
$demo = new Demo();
?>
		
		<div class="project">
		  <article class="align_nav">
       <?php 
$demo->draw("../../project/noise", $color1, "Demo 4");
?>
		  </article>
		
		<script type="x-shader/x-vertex" id="vertexShader">

			/* ASHIMA CODE START */
			//
// GLSL textureless classic 3D noise "cnoise",
// with an RSL-style periodic variant "pnoise".
// Author: Stefan Gustavson (stefan.gustavson@liu.se)
// Version: 2011-10-11
//
// Many thanks to Ian McEwan of Ashima Arts for the
// ideas for permutation and gradient selection.
//
// Copyright (c) 2011 Stefan Gustavson. All rights reserved.