News:

One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371

idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa

Main Menu

Disable shadows on particle lights

Started by EoceneMiacid, April 14, 2019, 04:35:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

EoceneMiacid

I think this one should be possible...

My plasmagun's projectiles has lights attached to them, so that they light up the place whenever you fire it.
This looks great, but it becomes problematic with a high enough rate of fire, especially if the projectiles bounce around and there are a lot of surfaces to bounce the light off of, and objects to cast shadows from.

I do not want to gimp the firerate to keep the framerate under control either.
Is it possible to keep the light but not the shadow casting?

The Happy Friar

Yes.  there should be a key/value you can set to disable shadows on lights.  If it's defined in the weapon def you'd just need to set it there (same key/value the editor uses, forget what it is)

xyzz

I'm not sure I have not tried. But on the cvars Friar told you about (mtr_light_shader) try adding "noshadows" "1" . Or in case of many fast projectiles lower the light radius so that the lights don't overlap.

EoceneMiacid

#3
Yeah, it was indeed pretty straightforward. I just created a new light material, with 'noshadows' set to 1.

Yay, now the plasmagun lights everything up without making my framerate collapse.