Difference between revisions of "User:Eroc remag"

From Bo3b's School for Shaderhackers
Jump to: navigation, search
(DX9Settings.ini Lesson4)
 
(Replaced content with " <nowiki> Lesson 0 Lesson 1 Lesson 2 Lesson 3 Lesson 4 </nowiki>")
Line 1: Line 1:
 
  <nowiki>
 
  <nowiki>
DX9Settings.ini
+
Lesson 0
 
+
Lesson 1
[General]
+
Lesson 2
UseRenderedShaders=true
+
Lesson 3
DumpAll=false
+
Lesson 4
 
+
// 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>
 
</nowiki>

Revision as of 02:51, 8 December 2014

Lesson 0
Lesson 1
Lesson 2
Lesson 3
Lesson 4