SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-27-08, 07:48 AM   #11
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,553
Downloads: 30
Uploads: 4
Default

Quote:
Originally Posted by Nisgeis
This is what I have been doing, except the shaders use floats between 0.0f and 1.0f for the RGBA colour information. So, if you've got a number that could be 0 - 1000, then you have to divide it by various numbers to get it to give something that isn't saturated over 1.0f and take it from there. It's just a bit tedious and quite time consuming, but I have it all worked out now. Thanks for the tips.
Yea, I didn't mention to normalize the values for the sake of clarity
skwasjer is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.