General Shader Naming

I think these are how shader constants map to the naming of compiled general10 shaders.

There may be mistakes – it isn’t easy to do!

General Shader Defines Hex value Notes
SHD_BASE 0x01
SHD_DETAIL 0x02
SHD_BUMP 0x04
SHD_SPECULARMAP 0x08
SHD_SPECULAR 0x10
SHD_ENV 0x20
SHD_FRESNEL_DIFFUSE 0x40
SHD_FRESNEL_ENV 0x80
SHD_FRESNEL_SPECULAR 0x0100
SHD_BLENDENVBYINVBASEALPHA 0x0200
SHD_BLENDENVBYSPECULARMAPALPHA 0x0400
SHD_VERTICAL_NORMAL 0x0800
SHD_PRECIP_BLEND 0x1000
?? 0x2000
SHD_PRELIT 0x4000
?? 0x8000
SHD_BLOOM_MODALPHA 0x010000
SHD_FINAL_ALPHA_BLEND 0x020000
SHD_ADDITIVE_EMISSIVEMAP 0x040000
?? 0x080000 Possibly the next two are the other emissive options?
?? 0x100000
?? 0x200000-
0x40000000
SHD_APPLY_Y_BIAS 0x80000000
?? 0x0100000000
?? 0x0200000000
SHD_APPLY_ALPHA_TEST 0x0400000000

SHD_SHADOWMAP seemed to be either 0x10000000 or 0x0200000000

I found some more SHD_  values in header files

SHD_NOSPECULARBLOOM is 0x200000

SHD_DOUBLE_SIDED is 0x8000000

 

I couldn’t find a match for the following

SHD_PRECIP_OFFSET, SHD_BLENDED_EMISSIVEMAP, SHD_MULTIPLY_EMISSIVEMAP, SHD_BLOOM_COPY,

SHD_APPLY_VERTEX_ALPHA_FACTOR, SHD_BLENDDIFFUSEBYINVSPECULARMAPALPHA or SHD_ALLOW_EMISSIVE_BLOOM  and SHD_HDR

 

About stevefsx

I don't use FSX that much. But I am very annoyed when it doesn't work properly!
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s