fTexCombine.dfm 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. object FormTexCombine: TFormTexCombine
  2. Left = 117
  3. Top = 103
  4. BorderStyle = bsDialog
  5. Caption = 'Texure Combine'
  6. ClientHeight = 422
  7. ClientWidth = 581
  8. Color = clBtnFace
  9. Font.Charset = DEFAULT_CHARSET
  10. Font.Color = clWindowText
  11. Font.Height = -11
  12. Font.Name = 'MS Sans Serif'
  13. Font.Style = []
  14. OldCreateOrder = False
  15. OnCreate = FormCreate
  16. PixelsPerInch = 96
  17. TextHeight = 13
  18. object Image1: TImage
  19. Left = 8
  20. Top = 80
  21. Width = 128
  22. Height = 128
  23. Stretch = True
  24. end
  25. object Image2: TImage
  26. Left = 152
  27. Top = 80
  28. Width = 128
  29. Height = 128
  30. Stretch = True
  31. end
  32. object Image3: TImage
  33. Left = 296
  34. Top = 80
  35. Width = 128
  36. Height = 128
  37. Stretch = True
  38. end
  39. object Label1: TLabel
  40. Left = 264
  41. Top = 22
  42. Width = 68
  43. Height = 19
  44. Caption = 'Textures'
  45. Font.Charset = DEFAULT_CHARSET
  46. Font.Color = clWindowText
  47. Font.Height = -17
  48. Font.Name = 'Arial'
  49. Font.Style = [fsBold]
  50. ParentFont = False
  51. end
  52. object Image4: TImage
  53. Left = 440
  54. Top = 80
  55. Width = 128
  56. Height = 128
  57. Stretch = True
  58. end
  59. object Label3: TLabel
  60. Left = 8
  61. Top = 216
  62. Width = 30
  63. Height = 13
  64. Caption = 'Result'
  65. end
  66. object Label4: TLabel
  67. Left = 200
  68. Top = 216
  69. Width = 115
  70. Height = 13
  71. Caption = 'Texture Combiners code'
  72. end
  73. object Label2: TLabel
  74. Left = 8
  75. Top = 40
  76. Width = 67
  77. Height = 13
  78. Caption = 'Primary Color :'
  79. end
  80. object SceneViewer: TGLSceneViewer
  81. Left = 8
  82. Top = 232
  83. Width = 180
  84. Height = 180
  85. Camera = GLCamera
  86. PostRender = SceneViewerPostRender
  87. Buffer.BackgroundColor = clGray
  88. Buffer.Lighting = False
  89. FieldOfView = 121.890792846679700000
  90. PenAsTouch = False
  91. TabOrder = 0
  92. end
  93. object BUApply: TButton
  94. Left = 200
  95. Top = 387
  96. Width = 75
  97. Height = 25
  98. Caption = 'Apply'
  99. TabOrder = 1
  100. OnClick = BUApplyClick
  101. end
  102. object PATex1: TPanel
  103. Left = 176
  104. Top = 124
  105. Width = 81
  106. Height = 41
  107. BevelOuter = bvLowered
  108. Caption = 'Unavailable'
  109. Font.Charset = DEFAULT_CHARSET
  110. Font.Color = 8421440
  111. Font.Height = -12
  112. Font.Name = 'Arial'
  113. Font.Style = [fsBold, fsItalic]
  114. ParentFont = False
  115. TabOrder = 2
  116. end
  117. object PATex2: TPanel
  118. Left = 320
  119. Top = 124
  120. Width = 81
  121. Height = 41
  122. BevelOuter = bvLowered
  123. Caption = 'Unavailable'
  124. Font.Charset = DEFAULT_CHARSET
  125. Font.Color = 8421440
  126. Font.Height = -12
  127. Font.Name = 'Arial'
  128. Font.Style = [fsBold, fsItalic]
  129. ParentFont = False
  130. TabOrder = 3
  131. end
  132. object PATex3: TPanel
  133. Left = 464
  134. Top = 124
  135. Width = 81
  136. Height = 41
  137. BevelOuter = bvLowered
  138. Caption = 'Unavailable'
  139. Font.Charset = DEFAULT_CHARSET
  140. Font.Color = 8421440
  141. Font.Height = -12
  142. Font.Name = 'Arial'
  143. Font.Style = [fsBold, fsItalic]
  144. ParentFont = False
  145. TabOrder = 4
  146. end
  147. object CBTex0: TCheckBox
  148. Left = 8
  149. Top = 64
  150. Width = 57
  151. Height = 16
  152. Caption = 'Tex0'
  153. Checked = True
  154. State = cbChecked
  155. TabOrder = 5
  156. OnClick = CBTex0Click
  157. end
  158. object CBTex1: TCheckBox
  159. Left = 152
  160. Top = 64
  161. Width = 73
  162. Height = 16
  163. Caption = 'Tex1'
  164. Checked = True
  165. State = cbChecked
  166. TabOrder = 6
  167. OnClick = CBTex0Click
  168. end
  169. object CBTex2: TCheckBox
  170. Left = 296
  171. Top = 64
  172. Width = 57
  173. Height = 16
  174. Caption = 'Tex2'
  175. TabOrder = 7
  176. OnClick = CBTex0Click
  177. end
  178. object CBTex3: TCheckBox
  179. Left = 440
  180. Top = 64
  181. Width = 57
  182. Height = 16
  183. Caption = 'Tex3'
  184. TabOrder = 8
  185. OnClick = CBTex0Click
  186. end
  187. object Panel1: TPanel
  188. Left = 200
  189. Top = 232
  190. Width = 369
  191. Height = 145
  192. BevelOuter = bvLowered
  193. BorderWidth = 1
  194. Caption = 'Panel1'
  195. TabOrder = 9
  196. object MECombiner: TMemo
  197. Left = 2
  198. Top = 2
  199. Width = 365
  200. Height = 141
  201. Hint =
  202. 'Syntax Examples:'#13#10#13#10' Tex1:=Tex0; // replace texture 1 with t' +
  203. 'exture 0'#13#10' Tex1:=Tex0+Tex1; // additive blending between textu' +
  204. 'res 0 and 1'#13#10' Tex1:=Tex0-Tex1; // subtractive blending between' +
  205. ' textures 0 and 1'#13#10' Tex1:=Tex0*Tex1; // modulation between tex' +
  206. 'tures 0 and 1'#13#10' Tex1:=Tex0+Tex1-0.5; // signed additive blendi' +
  207. 'ng between textures 0 and 1'#13#10' Tex1:=Interpolate(Tex0, Tex1, Pr' +
  208. 'imaryColor); // interpolation between textures 0 and 1 using pri' +
  209. 'mary color as factor'#13#10' Tex1:=Dot3(Tex0, Tex1); // dot3 product' +
  210. ' between textures 0 and 1'
  211. Align = alClient
  212. BorderStyle = bsNone
  213. Font.Charset = ANSI_CHARSET
  214. Font.Color = clWindowText
  215. Font.Height = -11
  216. Font.Name = 'Courier New'
  217. Font.Style = []
  218. Lines.Strings = (
  219. 'Tex0:=Tex0;'
  220. 'Tex1:=Tex0+Tex1;')
  221. ParentFont = False
  222. ParentShowHint = False
  223. ScrollBars = ssBoth
  224. ShowHint = True
  225. TabOrder = 0
  226. end
  227. end
  228. object PAPrimary: TPanel
  229. Left = 81
  230. Top = 38
  231. Width = 24
  232. Height = 17
  233. Color = 13421772
  234. TabOrder = 10
  235. OnClick = PAPrimaryClick
  236. OnDblClick = PAPrimaryClick
  237. end
  238. object GLScene: TGLScene
  239. Left = 64
  240. Top = 272
  241. object GLDummyCube: TGLDummyCube
  242. CubeSize = 1.000000000000000000
  243. end
  244. object GLHUDSprite: TGLHUDSprite
  245. Material.MaterialLibrary = GLMaterialLibrary
  246. Material.LibMaterialName = 'Tex0'
  247. Position.Coordinates = {0000B4420000B442000000000000803F}
  248. Width = 128.000000000000000000
  249. Height = 128.000000000000000000
  250. Rotation = 0.000000000000000000
  251. end
  252. object GLCamera: TGLCamera
  253. DepthOfView = 100.000000000000000000
  254. FocalLength = 50.000000000000000000
  255. TargetObject = GLDummyCube
  256. Position.Coordinates = {00000000000000000000A0400000803F}
  257. end
  258. end
  259. object GLMaterialLibrary: TGLMaterialLibrary
  260. Materials = <
  261. item
  262. Name = 'Tex0'
  263. Tag = 0
  264. Material.Texture.TextureMode = tmModulate
  265. Material.Texture.Disabled = False
  266. Texture2Name = 'Tex1'
  267. Shader = GLTexCombineShader
  268. end
  269. item
  270. Name = 'Tex1'
  271. Tag = 0
  272. Material.Texture.TextureMode = tmModulate
  273. Material.Texture.Disabled = False
  274. end
  275. item
  276. Name = 'Tex2'
  277. Tag = 0
  278. end
  279. item
  280. Name = 'Tex3'
  281. Tag = 0
  282. end>
  283. Left = 32
  284. Top = 272
  285. end
  286. object GLTexCombineShader: TGLTexCombineShader
  287. DesignTimeEnabled = False
  288. MaterialLibrary = GLMaterialLibrary
  289. LibMaterial3Name = 'Tex2'
  290. LibMaterial4Name = 'Tex3'
  291. Left = 96
  292. Top = 272
  293. end
  294. object ColorDialog: TColorDialog
  295. Options = [cdFullOpen, cdSolidColor, cdAnyColor]
  296. Left = 184
  297. Top = 16
  298. end
  299. end