Skip to content

Commit

Permalink
Add info message
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Feb 18, 2024
1 parent 9c30b33 commit f6f9aaf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/RenderPipeline.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Material, Vector2, WebGLRenderer } from "three";
import { Material, NoToneMapping, Vector2, WebGLRenderer } from "three";
import { Timer } from "three/addons/misc/Timer.js";
import { ShaderChunkExtensions } from "../shader-chunks/ShaderChunkExtensions.js";
import { ImmutableTimer } from "../utils/ImmutableTimer.js";
Expand Down Expand Up @@ -141,6 +141,12 @@ export class RenderPipeline implements Disposable, Renderable, Resizable {

if(value !== null) {

if(value.toneMapping !== NoToneMapping) {

Log.info("Consider using a ToneMappingEffect instead of inline tone mapping");

}

// Clearing will be done with ClearPass instances.
value.autoClear = false;

Expand Down

0 comments on commit f6f9aaf

Please sign in to comment.