diff --git a/src/ideas/mediated/LostFloor.tsx b/src/ideas/mediated/LostFloor.tsx index b3f81a20..4ea53091 100644 --- a/src/ideas/mediated/LostFloor.tsx +++ b/src/ideas/mediated/LostFloor.tsx @@ -15,7 +15,7 @@ export function LostFloor() { fragHead + shader.fragmentShader.replace( "#include ", - "#include \n" + fragColorFragment + "#include \n " + fragColorFragment ); }; return m; @@ -199,5 +199,5 @@ const fragHead = ` const fragColorFragment = ` diffuseColor.rgb -= 0.2 * (snoise(vPos) + 1.) / 2.; - diffuseColor.r -= 0.1 * (snoise(-vPos) + 1.) / 2.; + diffuseColor.r -= 0.025 * (snoise(-vPos) + 1.) / 2.; `; diff --git a/src/ideas/ui/TextInput/index.tsx b/src/ideas/ui/TextInput/index.tsx index dd8dd739..8d2c5b48 100644 --- a/src/ideas/ui/TextInput/index.tsx +++ b/src/ideas/ui/TextInput/index.tsx @@ -348,7 +348,7 @@ export function TextInput(props: TextProps) { @@ -356,7 +356,7 @@ export function TextInput(props: TextProps) { {/* @ts-ignore */} diff --git a/src/layers/Environment/logic/canvas.ts b/src/layers/Environment/logic/canvas.ts index 3bbdedbc..90817f73 100644 --- a/src/layers/Environment/logic/canvas.ts +++ b/src/layers/Environment/logic/canvas.ts @@ -1,5 +1,6 @@ import { Props as ContainerProps } from "@react-three/fiber/dist/declarations/src/web/Canvas"; import { ResizeObserver } from "@juggle/resize-observer"; +import { NoToneMapping } from "three"; export const defaultCanvasProps: Partial = { gl: { @@ -8,6 +9,8 @@ export const defaultCanvasProps: Partial = { depth: true, alpha: false, stencil: false, + physicallyCorrectLights: true, + toneMapping: NoToneMapping, }, shadows: false, camera: { position: [0, 2, 0], near: 0.01, far: 300 }, diff --git a/src/layers/Toolbelt/ideas/Lights.tsx b/src/layers/Toolbelt/ideas/Lights.tsx index d6988283..f967bbd5 100644 --- a/src/layers/Toolbelt/ideas/Lights.tsx +++ b/src/layers/Toolbelt/ideas/Lights.tsx @@ -1,8 +1,8 @@ export default function Lights() { return ( - - + + ); } diff --git a/src/tools/Camera/logic/photo.ts b/src/tools/Camera/logic/photo.ts index 0297a5b6..c4e7a217 100644 --- a/src/tools/Camera/logic/photo.ts +++ b/src/tools/Camera/logic/photo.ts @@ -51,6 +51,7 @@ export const usePhotography = ( precision: "highp", antialias: true, }); + r.physicallyCorrectLights = true; r.toneMapping = NoToneMapping; r.outputEncoding = sRGBEncoding; return r; diff --git a/src/worlds/Lost.tsx b/src/worlds/Lost.tsx index 382dcac8..d8a00f32 100644 --- a/src/worlds/Lost.tsx +++ b/src/worlds/Lost.tsx @@ -6,8 +6,8 @@ export function LostWorld() { return ( - - + +