How to use the vendors/shader-odango-set/main.copy function in vendors

To help you get started, we’ve selected a few vendors examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kenjiSpecial / webgl-sketch-dojo / sketches / basic / postprocessing / app.js View on Github external
var raf = require('raf');
var createCaption = require('vendors/caption');

var ShaderOdangoSet = require('vendors/shader-odango-set/main');
var grayShader = ShaderOdangoSet.gray;
var copyShader = ShaderOdangoSet.copy;

var scene, camera, renderer;
var material, light;
var plane;
var width = window.innerWidth;
var height = window.innerHeight;

var loader = new THREE.TextureLoader();
var composer;
var object;


var title = 'basic post processing';
var caption = '<p>Shader is implemented by <a href="https://github.com/kenjiSpecial/shader-odango-set">https://github.com/kenjiSpecial/shader-odango-set</a></p>';
var wrapper = createCaption(title, caption, 'https://github.com/kenjiSpecial/webgl-sketch-dojo/blob/master/sketches/basic/postprocessing/app.js');
wrapper.style.width = (window.innerWidth/2 - 50) + "px";
github kenjiSpecial / webgl-sketch-dojo / sketches / basic / swap-rendering1 / app.js View on Github external
var raf = require('raf');
var createCaption = require('../../dom/caption');
var glslify = require('glslify');

var ShaderOdangoSet = require('vendors/shader-odango-set/main');
var copyShader = ShaderOdangoSet.copy;

var blurShader = require('./blur/main');
var blurEffect;

var scene, camera, renderer;
var material, light;
var cubes = [];
var object, id;
var stats, wrapper;
var composer;
var mouse = new THREE.Vector2(-9999, -9999);

var isAnimation = true;
var orthShaderMaterial;
var orthScene, orthCamera, orthPlane;
github kenjiSpecial / webgl-sketch-dojo / sketches / basic / swap-rendering0 / app.js View on Github external
var raf = require('raf');
var createCaption = require('../../dom/caption');

var ShaderOdangoSet = require('vendors/shader-odango-set/main');
var copyShader = ShaderOdangoSet.copy;

var blurShader = require('./blur/main');
var blurEffect;

var scene, camera, renderer;
var material, light;
var cubes = [];
var object, id;
var stats, wrapper;
var composer;
var mouse = new THREE.Vector2(-9999, -9999);

var isAnimation = true;

var texture = {
    front : null,