Pastebin PRO Accounts AUTUMN SPECIAL! For a limited time only get 40% discount on a LIFETIME PRO account! Offer Ends Soon!
SHARE
TWEET
Untitled
a guest
Oct 3rd, 2016
48
Never
- //Toon shader
- //Vertex shader -----------------------------
- //
- // ToonShader.vsh
- // created with Shaderific
- //
- // Vertex shader for cartoon-style shading
- //
- // Author: Philip Rideout
- //
- // Copyright (c) 2005-2006 3Dlabs Inc. Ltd.
- //
- // See the editor settings menu for license information
- //
- attribute vec4 position;
- attribute vec3 normal;
- uniform mat4 modelViewProjectionMatrix;
- uniform highp mat4 modelViewMatrix;
- uniform mat3 normalMatrix;
- varying vec3 eyespaceNormal;
- varying vec4 eyespacePosition;
- void main(void)
- {
- eyespaceNormal = normalMatrix * normal;
- eyespacePosition = modelViewMatrix * position;
- gl_Position = modelViewProjectionMatrix * position;
- }
RAW Paste Data
