Skip to content

Commit a72f92e

Browse files
author
Ravbug
committed
Update for engine changes
1 parent 8efb739 commit a72f92e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

RavEngine

Samples/Shadows/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct Level : public RavEngine::World{
6767
tri.GetTransform().LocalTranslateDelta(vector3(-1.5, 0.8, 0))
6868
.LocalRotateDelta(vector3(deg_to_rad(90), deg_to_rad(90), deg_to_rad(180)))
6969
.LocalRotateDelta(vector3(0, deg_to_rad(90), 0));
70-
70+
7171
cube = Instantiate<decltype(cube)>();
7272
auto cubeMat = New<PBRMaterialInstance>(Material::Manager::Get<PBRMaterial>());
7373
cubeMat->SetAlbedoColor({0,0,1,1});
@@ -147,8 +147,8 @@ struct Level : public RavEngine::World{
147147
auto pointLight = Instantiate<GameObject>();
148148
auto& pLight = pointLight.EmplaceComponent<PointLight>();
149149
pLight.debugEnabled = true;
150-
pLight.SetColorRGBA({1,1,1,1});
151-
pLight.SetIntensity(15);
150+
pLight.SetColorRGBA({1,0,0,1});
151+
pLight.SetIntensity(4);
152152
pLight.SetCastsShadows(true);
153153

154154
constexpr static vector3 spotLightInitialPos{0,3,2};

0 commit comments

Comments
 (0)