Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 990f751

Browse files
committed
Fixed gamma encoding 🚀
1 parent 374802f commit 990f751

19 files changed

+15
-15
lines changed

_data/webpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash: 579dcbc857f0a4251c2f
1+
hash: 3734788cd1599606e1f7

_includes/critical.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_ts/home/scene-threejs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import {
1717
RepeatWrapping,
1818
MeshStandardMaterial,
1919
MeshPhysicalMaterialParameters,
20-
PlaneGeometry
20+
PlaneGeometry,
21+
GammaEncoding
2122
} from 'three'
2223
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
2324
import { PLYLoader } from 'three/examples/jsm/loaders/PLYLoader'
@@ -83,8 +84,7 @@ const camera3D = (): PerspectiveCamera => {
8384
const renderer3D = (): WebGLRenderer => {
8485
const renderer = new WebGLRenderer({ alpha: true })
8586
renderer.physicallyCorrectLights = true
86-
// renderer.gammaInput = true
87-
// renderer.gammaOutput = true
87+
renderer.outputEncoding = GammaEncoding
8888
renderer.shadowMap.enabled = true
8989
renderer.shadowMap.type = PCFSoftShadowMap
9090
renderer.setSize(window.innerWidth, window.innerHeight)
File renamed without changes.

assets/dist/index.home.579dcbc857f0a4251c2f.min.js renamed to assets/dist/index.home.3734788cd1599606e1f7.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/dist/scene-threejs.964b03e15e0254f28a8b.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/dist/scene-threejs.9f884af391a5901fc1a2.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/dist/style.blog.archive.579dcbc857f0a4251c2f.css renamed to assets/dist/style.blog.archive.3734788cd1599606e1f7.css

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)