Page 1 of 1

How can I control brightness of light when using Tex shader

Unread postPosted: Tue Oct 04, 2022 12:07 pm
by mohyeh77
Hello!
as we know or someone tells us about shaders, or googling things, and RW guidelines published on it's sites some help , we can use Tex shader as light or if we gonna make something bright for night time,
but no information about how we can control the brightness of this shader, maybe manipulate the Texture itself or using uv-arguments when export model to IGS.
I can't figure out this thing, because when i'm using it, every thing become crazy light with a full contrast and brightness.
please help me out doing this well..

Regards,,,
Mohammed Yahia

Re: How can I control brightness of light when using Tex shader

Unread postPosted: Wed Oct 05, 2022 8:58 am
by GreatNortherner
Hi,

The Tex shader renders everything pretty much at the texture's original color values, independent of the lighting parameters of the game world. So the easiest way to adjust its brightness is most likely to alter the texture's color/brightness as you expected. At any rate I reckon that must be much easier than fiddling with the material settings.

Another option, depending on what sort of illumination effect you want to achieve, might be to use the AddATex shader instead as that allows you to use a greyscale alpha channel to "dim" the light, where full white alpha is fully lit and darker means less bright (very useful also to create the blurry glow or corona effect for a light glow).

Cheers,
Michael

Re: How can I control brightness of light when using Tex shader

Unread postPosted: Wed Oct 05, 2022 9:03 am
by kris120
It is quite simple:
You can not change the brightness like this, because it is designed.
In the terms of the game it is "unlit" - it does not react on any illumination.
You can use this with illuminated house windows.

Edit : Hi Greatnorthener, we have written at the same time ;-)

Re: How can I control brightness of light when using Tex shader

Unread postPosted: Wed Oct 05, 2022 10:52 am
by mohyeh77
GreatNortherner wrote:Hi,

The Tex shader renders everything pretty much at the texture's original color values, independent of the lighting parameters of the game world. So the easiest way to adjust its brightness is most likely to alter the texture's color/brightness as you expected. At any rate I reckon that must be much easier than fiddling with the material settings.

Another option, depending on what sort of illumination effect you want to achieve, might be to use the AddATex shader instead as that allows you to use a greyscale alpha channel to "dim" the light, where full white alpha is fully lit and darker means less bright (very useful also to create the blurry glow or corona effect for a light glow).

Cheers,
Michael


Thanks Michael, I appreciate your help and explanation !!*ok*!! .

Cheers,
Mohammed Yahia

Re: How can I control brightness of light when using Tex shader

Unread postPosted: Wed Oct 05, 2022 11:00 am
by mohyeh77
kris120 wrote: Hi Greatnorthener, we have written at the same time ;-)


You both have the same ideas at the same time, thanks for your help and I will try them out **!!bang!!** .

Regards,
Mohammed Yahia