mirror of
https://github.com/FMS-Cat/condition.git
synced 2025-08-21 04:41:37 +02:00
aesthetics: no shadow for condition
This commit is contained in:
@@ -120,16 +120,7 @@ export class Condition extends Entity {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const depth = new Material(
|
const materials = { cubemap, deferred };
|
||||||
conditionVert,
|
|
||||||
conditionFrag,
|
|
||||||
{
|
|
||||||
defines: [ 'SHADOW 1' ],
|
|
||||||
initOptions: { geometry, target: dummyRenderTarget },
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
const materials = { cubemap, deferred, depth };
|
|
||||||
|
|
||||||
objectValuesMap( materials, ( material ) => {
|
objectValuesMap( materials, ( material ) => {
|
||||||
material.addUniformTexture( 'samplerSvg', texture );
|
material.addUniformTexture( 'samplerSvg', texture );
|
||||||
@@ -157,7 +148,6 @@ export class Condition extends Entity {
|
|||||||
() => {
|
() => {
|
||||||
cubemap.replaceShader( conditionVert, conditionFrag );
|
cubemap.replaceShader( conditionVert, conditionFrag );
|
||||||
deferred.replaceShader( conditionVert, conditionFrag );
|
deferred.replaceShader( conditionVert, conditionFrag );
|
||||||
depth.replaceShader( conditionVert, conditionFrag );
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user