Skip to content

Commit

Permalink
Remove outdated type definitions in uniforms
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley committed Mar 31, 2019
1 parent 072cf7b commit 8511533
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 37 deletions.
6 changes: 3 additions & 3 deletions examples/js/effects/OutlineEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ THREE.OutlineEffect = function ( renderer, parameters ) {
};

var uniformsChunk = {
outlineThickness: { type: "f", value: defaultThickness },
outlineColor: { type: "c", value: defaultColor },
outlineAlpha: { type: "f", value: defaultAlpha }
outlineThickness: { value: defaultThickness },
outlineColor: { value: defaultColor },
outlineAlpha: { value: defaultAlpha }
};

var vertexShaderChunk = [
Expand Down
16 changes: 8 additions & 8 deletions examples/js/shaders/DepthLimitedBlurShader.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ THREE.DepthLimitedBlurShader = {
'PERSPECTIVE_CAMERA': 1
},
uniforms: {
'tDiffuse': { type: 't', value: null },
'size': { type: 'v2', value: new THREE.Vector2( 512, 512 ) },
'sampleUvOffsets': { type: 'v2v', value: [ new THREE.Vector2( 0, 0 ) ] },
'sampleWeights': { type: '1fv', value: [ 1.0 ] },
'tDepth': { type: 't', value: null },
'cameraNear': { type: 'f', value: 10 },
'cameraFar': { type: 'f', value: 1000 },
'depthCutoff': { type: 'f', value: 10 },
'tDiffuse': { value: null },
'size': { value: new THREE.Vector2( 512, 512 ) },
'sampleUvOffsets': { value: [ new THREE.Vector2( 0, 0 ) ] },
'sampleWeights': { value: [ 1.0 ] },
'tDepth': { value: null },
'cameraNear': { value: 10 },
'cameraFar': { value: 1000 },
'depthCutoff': { value: 10 },
},
vertexShader: [
"#include <common>",
Expand Down
10 changes: 5 additions & 5 deletions examples/js/shaders/LuminosityHighPassShader.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ THREE.LuminosityHighPassShader = {

uniforms: {

"tDiffuse": { type: "t", value: null },
"luminosityThreshold": { type: "f", value: 1.0 },
"smoothWidth": { type: "f", value: 1.0 },
"defaultColor": { type: "c", value: new THREE.Color( 0x000000 ) },
"defaultOpacity": { type: "f", value: 0.0 }
"tDiffuse": { value: null },
"luminosityThreshold": { value: 1.0 },
"smoothWidth": { value: 1.0 },
"defaultColor": { value: new THREE.Color( 0x000000 ) },
"defaultOpacity": { value: 0.0 }

},

Expand Down
34 changes: 17 additions & 17 deletions examples/js/shaders/SAOShader.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ THREE.SAOShader = {
},
uniforms: {

'tDepth': { type: 't', value: null },
'tDiffuse': { type: 't', value: null },
'tNormal': { type: 't', value: null },
'size': { type: 'v2', value: new THREE.Vector2( 512, 512 ) },

'cameraNear': { type: 'f', value: 1 },
'cameraFar': { type: 'f', value: 100 },
'cameraProjectionMatrix': { type: 'm4', value: new THREE.Matrix4() },
'cameraInverseProjectionMatrix': { type: 'm4', value: new THREE.Matrix4() },

'scale': { type: 'f', value: 1.0 },
'intensity': { type: 'f', value: 0.1 },
'bias': { type: 'f', value: 0.5 },

'minResolution': { type: 'f', value: 0.0 },
'kernelRadius': { type: 'f', value: 100.0 },
'randomSeed': { type: 'f', value: 0.0 }
'tDepth': { value: null },
'tDiffuse': { value: null },
'tNormal': { value: null },
'size': { value: new THREE.Vector2( 512, 512 ) },

'cameraNear': { value: 1 },
'cameraFar': { value: 100 },
'cameraProjectionMatrix': { value: new THREE.Matrix4() },
'cameraInverseProjectionMatrix': { value: new THREE.Matrix4() },

'scale': { value: 1.0 },
'intensity': { value: 0.1 },
'bias': { value: 0.5 },

'minResolution': { value: 0.0 },
'kernelRadius': { value: 100.0 },
'randomSeed': { value: 0.0 }
},
vertexShader: [
"varying vec2 vUv;",
Expand Down
8 changes: 4 additions & 4 deletions examples/webgl_materials_lightmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@
var vertexShader = document.getElementById( 'vertexShader' ).textContent;
var fragmentShader = document.getElementById( 'fragmentShader' ).textContent;
var uniforms = {
topColor: { type: "c", value: new THREE.Color( 0x0077ff ) },
bottomColor: { type: "c", value: new THREE.Color( 0xffffff ) },
offset: { type: "f", value: 400 },
exponent: { type: "f", value: 0.6 }
topColor: { value: new THREE.Color( 0x0077ff ) },
bottomColor: { value: new THREE.Color( 0xffffff ) },
offset: { value: 400 },
exponent: { value: 0.6 }
};
uniforms.topColor.value.copy( light.color );

Expand Down

0 comments on commit 8511533

Please sign in to comment.