SpiderPig Posted June 15 Share Posted June 15 This code won't stop the light from casting shadows. #include "Engine.h" #include "ComponentSystem.h" using namespace UltraEngine; int main(int argc, const char* argv[]) { auto displays = GetDisplays(); auto window = CreateWindow("Ultra Engine", 0, 0, 1280, 720, displays[0], WINDOW_CENTER | WINDOW_TITLEBAR); auto world = CreateWorld(); auto framebuffer = CreateFramebuffer(window); auto camera = CreateCamera(world); camera->SetClearColor(0.125); camera->SetFov(70); camera->SetPosition(0, 10, -5); camera->AddComponent<CameraControls>(); auto light = CreateDirectionalLight(world); light->SetRotation(35, 45, 0); light->SetShadows(false); auto floor = CreatePlane(world, 100, 100); auto cube = CreateBox(world); cube->Move(0, 2, 0); camera->SetPosition(0.0f, 2.0f, -3.0f); while (window->Closed() == false and window->KeyDown(KEY_ESCAPE) == false) { world->Update(); world->Render(framebuffer); } return 0; } Quote Link to comment Share on other sites More sharing options...
Solution Josh Posted June 22 Solution Share Posted June 22 Fixed! 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.