Difference between revisions of "User:Eroc remag"

From Bo3b's School for Shaderhackers
Jump to: navigation, search
(DX9Settings.ini Lesson4)
 
 
(8 intermediate revisions by one user not shown)
Line 1: Line 1:
<nowiki>
+
[http://wiki.bo3b.net/index.php?title=User:Eroc_remag Home]
DX9Settings.ini
+
#Lesson1
 
+
#Lesson2
[General]
+
#[http://wiki.bo3b.net/index.php?title=User:Eroc_remag#L3 Lesson3]
UseRenderedShaders=true
+
#[http://wiki.bo3b.net/index.php?title=User:Eroc_remag#L4 Lesson4]
DumpAll=false
+
 
+
// Constant registers that will arrive in Vertex and Pixel Shaders, as c220
+
DefVSConst1 = 220 
+
DefPSConst1 = 220
+
 
+
// The PresetKeysList specifies which KEYs will be used.
+
// Multiple keys lists are supported.
+
// Note that the KEY sections are in hexadecimal
+
PresetsKeysList = 1;2;
+
 
+
// Type=1 is toggle, Type=2 is momentary.
+
[KEY1]
+
//Numpad 0
+
Key = 96
+
Presets = 1;2;
+
Type = 1
+
 
+
// Constants that will be sent to every shader through constant register c220.
+
// The Const1 tells us that we'll need to use c220.x to compare against these
+
// values.  Const2 would be seen as c220.y.
+
// 0x3f800000 is 1.0 in floating point hex, 0x00000000 is 0.0 in hex
+
// UseByDef specifies which constant is the default starting value.
+
[PRES1]
+
Const2 = 0x3f800000
+
UseByDef=True
+
[PRES2]
+
Const2 = 0x00000000
+
 
+
[KEY2]
+
//Numpad 9
+
Key = 105 
+
Presets = 3;4;
+
Type = 1
+
 
+
[PRES3]
+
Const2 = 0x3f000000
+
UseByDef=True
+
[PRES4]
+
Const2 = 0x3e800000
+
</nowiki>
+

Latest revision as of 02:02, 8 December 2014

Home

  1. Lesson1
  2. Lesson2
  3. Lesson3
  4. Lesson4