Jump to content

Recommended Posts

Posted

Hiho I created a Spotlight with

 

self.flashlight = SpotLight:Create(self.entity)

 

but all objects drop no shadows. when I create a spotlight in the editor my objects drop shadows.. is there a way to enable shadows from code side?

It doesn´t work... why? mhmmm It works... why?

Posted

thx but also it will not work ;(

 

where you see that command in the api?

 

a spotlight earns functions from object/entity/light and I cant see a function like "SetShadowMode()"

It doesn´t work... why? mhmmm It works... why?

Posted

mhmm I dont know what a material has to do with a light entity?

 

my shadows working when I use a Spotlight from the editor

 

IF I DONT CHANGE SOMETHING

 

and use a spotlight from codeside

 

My shadows will not be dropped.

 

 

So i thought I have to turn on shadows from the lightsettings but it looks like I have to do from material side but I dont get behind it why it will not work with my code light

It doesn´t work... why? mhmmm It works... why?

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...