Skip to content

Commit 8cef9ea

Browse files
committed
lint
1 parent 4071212 commit 8cef9ea

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

examples/graphics/shader-graph-chunks-overrides.html

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,22 +186,17 @@
186186

187187
shaderGraphChunk.update(app.graphicsDevice);
188188

189-
if (entityB && matB)
190-
{
189+
if (entityB && matB) {
191190
var tB=time%1.0;
192-
if (tB>=0.5)
193-
{
191+
if (tB>=0.5) {
194192
matB.overrideGraphSwitch(switchName, 1);
195-
}
196-
else
197-
{
193+
} else {
198194
matB.overrideGraphSwitch(switchName, 0);
199195
}
200196
matB.update();
201197
}
202198

203-
if (entityC && matC)
204-
{
199+
if (entityC && matC) {
205200
matC.overrideGraphParameter("uTime", time*-0.5 );
206201
matC.overrideGraphParameter("uTexMapA", numbersMap );
207202
matC.overrideGraphParameter("uTileA", 1.0 );

src/scene/forward-renderer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ import { Material } from './materials/material.js';
5050
import { Mesh } from './mesh.js';
5151
import { MeshInstance } from './mesh-instance.js';
5252
import { VisibleInstanceList } from './layer.js';
53-
import { StandardMaterial } from './materials/standard-material.js';
5453

5554
// Global shadowmap resources
5655
var scaleShift = new Mat4().mul2(

src/scene/materials/shader-graph-node.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,8 @@ Object.assign(ShaderGraphNode.prototype, {
513513

514514
setParameter: function (name, value) {
515515
var ioPort = this.getIoPortByName(name);
516-
if (ioPort && value !== undefined)
517-
{
518-
if (!((value instanceof Texture || typeof(value) === 'number') ? value === ioPort._value : value.equals(ioPort._value)))
519-
{
516+
if (ioPort && value !== undefined) {
517+
if (!((value instanceof Texture || typeof(value) === 'number') ? value === ioPort._value : value.equals(ioPort._value))) {
520518
this._addIoPort(ioPort.type, name, value, ioPort.ptype );
521519
}
522520
}

0 commit comments

Comments
 (0)