Difference between revisions of "Default DX9Settings.ini"

From Bo3b's School for Shaderhackers
Jump to: navigation, search
(Created page with " <nowiki> [General] // UseRenderedShaders=true is nearly always useful, because it trims the // list of shaders seen while hunting down to just those active in the // curre...")
(No difference)

Revision as of 20:33, 30 August 2014

[General]

// UseRenderedShaders=true is nearly always useful, because it trims the 
// list of shaders seen while hunting down to just those active in the 
// current scene.  Disable this only if you get crashes during hunting.
UseRenderedShaders=true

// DumpAll will generate ASM text files for every shader seen by the game.
// This is usually worth doing once, but not useful for every run.
DumpAll=false

// Constant registers that will arrive in Vertex and Pixel Shaders, as
// c250.  The constants below will be assigned, based on the key preset.
DefVSConst1 = 250  		
DefPSConst1 = 250

// The PresetKeysList specifies which KEYs will be used.
// Multiple keys lists are supported.
PresetsKeysList = 1;

// For this single key example, we only need one keylist, KEY1. This specifies
// that the Numpad 0 keyboard key (Key=96) should act as a toggle. And toggle
// between the two Presets of PRES1, PRES2.  Which will change the Const1 being 
// passed to the shader code from 1.0 to 0.0 as floating point numbers.
// Type=1 is toggle, Type=2 is momentary.
[KEY1]
Key = 96
Presets = 1;2;
Type = 1

// Constants that will be sent to every shader through constant register c250.
// The Const1 tells us that we'll need to use c250.x to compare against these
// values.  Const2 would be seen as c250.y.
// 0x3f800000 is 1.0 in floating point hex, 0x00000000 is 0.0 in hex
[PRES1]
Const1 = 0x3f800000
[PRES2]
Const1 = 0x00000000