mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: some changes to lighting... again
This commit is contained in:
1 parent
66cf1fd223
commit
e26bb4efe0
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ const LIGHTS_COUNT = 5;
|
|||||||
const LIGHT_DISTANCE = 13;
|
const LIGHT_DISTANCE = 13;
|
||||||
const LIGHT_HEIGHT_0 = 4;
|
const LIGHT_HEIGHT_0 = 4;
|
||||||
const LIGHT_HEIGHT_1 = 2;
|
const LIGHT_HEIGHT_1 = 2;
|
||||||
const INTENSITY = 35;
|
const INTENSITY = 50;
|
||||||
|
|
||||||
const N = 128;
|
const N = 128;
|
||||||
const TARGET_FRAME_RATE = 30;
|
const TARGET_FRAME_RATE = 30;
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ export function SceneProps() {
|
|||||||
|
|
||||||
useFrame(({ camera }) => {
|
useFrame(({ camera }) => {
|
||||||
if (!material.current) return;
|
if (!material.current) return;
|
||||||
material.current.opacity = clamp(0.5 * camera.position.y, 0, 1);
|
material.current.opacity = clamp(0.5 * camera.position.y, 0, 0.5);
|
||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in new issue
Block a user