Skip to content

Commit

Permalink
fix: change smoke texture encoding for colorSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed May 23, 2023
1 parent 6deeb34 commit 2338803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/abstractions/Smoke.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const calculateOpacity = (scale: number, density: number): number => (scale / 6)
const { map } = await useTexture({ map: texture })
const { state } = useCientos()
const encoding = computed(() => state.renderer?.outputColorSpace)
const colorSpace = computed(() => state.renderer?.outputColorSpace)
const { onLoop } = useRenderLoop()
Expand All @@ -124,8 +124,8 @@ onLoop(() => {
<TresPlaneGeometry :scale="[scale, scale, scale]" :rotation="[0, 0, 0]" />
<TresMeshStandardMaterial
:map="map"
:map-encoding="encoding"
:depth-test="depthTest"
:color-space="colorSpace"
:color="color"
:depth-write="false"
transparent
Expand Down

0 comments on commit 2338803

Please sign in to comment.