How can I control brightness of light when using Tex shader

Post your problems and installation issues here!

How can I control brightness of light when using Tex shader

Unread postby mohyeh77 » Tue Oct 04, 2022 12:07 pm

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
mohyeh77
 

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

Unread postby GreatNortherner » Wed Oct 05, 2022 8:58 am

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
User avatar
GreatNortherner
 
Posts: 1591
Joined: Sun Feb 15, 2009 11:19 am
Location: Czech Republic

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

Unread postby kris120 » Wed Oct 05, 2022 9:03 am

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 ;-)
User avatar
kris120
 
Posts: 471
Joined: Mon Jul 22, 2013 3:19 pm
Location: Augsburg, Bavaria, Germany

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

Unread postby mohyeh77 » Wed Oct 05, 2022 10:52 am

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
mohyeh77
 

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

Unread postby mohyeh77 » Wed Oct 05, 2022 11:00 am

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
mohyeh77
 


Return to Problems and Peculiarities

Who is online

Users browsing this forum: TheKman and 1 guest