Make any entity type - in particular SimpleEntity, Tree, and Unit - support a light

Post Reply
User avatar
Reika
Filter Inserter
Filter Inserter
Posts: 582
Joined: Tue May 19, 2015 1:56 am
Contact:

Make any entity type - in particular SimpleEntity, Tree, and Unit - support a light

Post by Reika »

As per the title. Since I have been told that fullbright/"unlit" shaders/textures are impossible (see here https://i.imgur.com/5Hu3Irh.png ), this is the next best thing.
Image

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Make any entity type - in particular SimpleEntity, Tree, and Unit - support a light

Post by Klonan »

This is possible now with the script rendering

User avatar
Reika
Filter Inserter
Filter Inserter
Posts: 582
Joined: Tue May 19, 2015 1:56 am
Contact:

Re: Make any entity type - in particular SimpleEntity, Tree, and Unit - support a light

Post by Reika »

Klonan wrote:
Wed Jan 16, 2019 1:26 pm
This is possible now with the script rendering
Is there some way to see how exactly?
Image

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Make any entity type - in particular SimpleEntity, Tree, and Unit - support a light

Post by Bilka »

You can find the documentation here: https://lua-api.factorio.com/0.17.0-pre ... draw_light It is a bit outdated, I have added a bool to the light so that you can make it have the same orientation as the entity it's attached to.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Implemented mod requests”