2
0

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