Unit1.dfm 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'Bunny Bump Shader'
  5. ClientHeight = 542
  6. ClientWidth = 661
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'Tahoma'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. OnCreate = FormCreate
  15. OnResize = FormResize
  16. PixelsPerInch = 96
  17. TextHeight = 13
  18. object GLSceneViewer1: TGLSceneViewer
  19. Left = 0
  20. Top = 57
  21. Width = 661
  22. Height = 485
  23. Camera = Camera
  24. BeforeRender = GLSceneViewer1BeforeRender
  25. Buffer.BackgroundColor = clBackground
  26. FieldOfView = 156.699401855468800000
  27. Align = alClient
  28. OnMouseDown = GLSceneViewer1MouseDown
  29. OnMouseMove = GLSceneViewer1MouseMove
  30. TabOrder = 0
  31. end
  32. object Panel1: TPanel
  33. Left = 0
  34. Top = 0
  35. Width = 661
  36. Height = 57
  37. Align = alTop
  38. TabOrder = 1
  39. object Label1: TLabel
  40. Left = 8
  41. Top = 8
  42. Width = 69
  43. Height = 13
  44. Caption = 'Shade Method'
  45. end
  46. object Label2: TLabel
  47. Left = 384
  48. Top = 8
  49. Width = 70
  50. Height = 13
  51. Caption = 'Specular Mode'
  52. end
  53. object LabelFPS: TLabel
  54. Left = 512
  55. Top = 27
  56. Width = 18
  57. Height = 13
  58. Caption = 'FPS'
  59. end
  60. object ComboBox1: TComboBox
  61. Left = 8
  62. Top = 24
  63. Width = 145
  64. Height = 21
  65. Style = csDropDownList
  66. ItemIndex = 0
  67. TabOrder = 0
  68. Text = 'Per-Vertex'
  69. OnChange = ComboBox1Change
  70. Items.Strings = (
  71. 'Per-Vertex')
  72. end
  73. object GroupBox1: TGroupBox
  74. Left = 160
  75. Top = 8
  76. Width = 169
  77. Height = 41
  78. Caption = 'Lights'
  79. TabOrder = 1
  80. object Shape1: TShape
  81. Left = 32
  82. Top = 16
  83. Width = 17
  84. Height = 17
  85. OnMouseDown = Shape1MouseDown
  86. end
  87. object Shape2: TShape
  88. Left = 88
  89. Top = 16
  90. Width = 17
  91. Height = 17
  92. Brush.Color = clRed
  93. OnMouseDown = Shape2MouseDown
  94. end
  95. object Shape3: TShape
  96. Left = 144
  97. Top = 16
  98. Width = 17
  99. Height = 17
  100. Brush.Color = clBlue
  101. OnMouseDown = Shape3MouseDown
  102. end
  103. object CheckBox1: TCheckBox
  104. Left = 8
  105. Top = 16
  106. Width = 17
  107. Height = 17
  108. Checked = True
  109. State = cbChecked
  110. TabOrder = 0
  111. OnClick = CheckBox1Click
  112. end
  113. object CheckBox2: TCheckBox
  114. Left = 64
  115. Top = 16
  116. Width = 17
  117. Height = 17
  118. TabOrder = 1
  119. OnClick = CheckBox2Click
  120. end
  121. object CheckBox3: TCheckBox
  122. Left = 120
  123. Top = 16
  124. Width = 17
  125. Height = 17
  126. TabOrder = 2
  127. OnClick = CheckBox3Click
  128. end
  129. end
  130. object CheckBox4: TCheckBox
  131. Left = 336
  132. Top = 24
  133. Width = 49
  134. Height = 17
  135. Caption = 'Spin'
  136. Checked = True
  137. State = cbChecked
  138. TabOrder = 2
  139. end
  140. object ComboBox2: TComboBox
  141. Left = 384
  142. Top = 24
  143. Width = 73
  144. Height = 21
  145. Style = csDropDownList
  146. ItemIndex = 0
  147. TabOrder = 3
  148. Text = 'smOff'
  149. OnChange = ComboBox2Change
  150. Items.Strings = (
  151. 'smOff'
  152. 'smBlinn'
  153. 'smPhong')
  154. end
  155. end
  156. object GLScene1: TGLScene
  157. Left = 40
  158. Top = 72
  159. object DCLights: TGLDummyCube
  160. CubeSize = 1.000000000000000000
  161. object WhiteLight: TGLLightSource
  162. ConstAttenuation = 1.000000000000000000
  163. Position.Coordinates = {0000404000000040000000000000803F}
  164. LightStyle = lsOmni
  165. Specular.Color = {0000803F0000803F0000803F0000803F}
  166. SpotCutOff = 180.000000000000000000
  167. end
  168. object RedLight: TGLLightSource
  169. ConstAttenuation = 1.000000000000000000
  170. Diffuse.Color = {0000803F00000000000000000000803F}
  171. Position.Coordinates = {0000C0BF00000040666626C00000803F}
  172. LightStyle = lsOmni
  173. Shining = False
  174. Specular.Color = {0000803F0000003F0000003F0000803F}
  175. SpotCutOff = 180.000000000000000000
  176. end
  177. object BlueLight: TGLLightSource
  178. ConstAttenuation = 1.000000000000000000
  179. Diffuse.Color = {00000000000000000000803F0000803F}
  180. Position.Coordinates = {0000C0BF00000040666626400000803F}
  181. LightStyle = lsOmni
  182. Shining = False
  183. Specular.Color = {0000003F0000003F0000803F0000803F}
  184. SpotCutOff = 180.000000000000000000
  185. end
  186. end
  187. object Bunny: TGLFreeForm
  188. Material.FrontProperties.Shininess = 64
  189. Material.FrontProperties.Specular.Color = {CDCC4C3ECDCC4C3ECDCC4C3E0000803F}
  190. Material.MaterialLibrary = GLMaterialLibrary1
  191. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  192. end
  193. object Camera: TGLCamera
  194. DepthOfView = 100.000000000000000000
  195. FocalLength = 50.000000000000000000
  196. TargetObject = Bunny
  197. Position.Coordinates = {000080400000803F000000000000803F}
  198. end
  199. end
  200. object GLCadencer1: TGLCadencer
  201. Scene = GLScene1
  202. OnProgress = GLCadencer1Progress
  203. Left = 40
  204. Top = 136
  205. end
  206. object GLMaterialLibrary1: TGLMaterialLibrary
  207. Materials = <
  208. item
  209. Name = 'Bump'
  210. Tag = 0
  211. Material.FrontProperties.Shininess = 64
  212. Material.FrontProperties.Specular.Color = {CDCC4C3ECDCC4C3ECDCC4C3E0000803F}
  213. Material.Texture.Disabled = False
  214. Shader = GLBumpShader1
  215. end>
  216. Left = 136
  217. Top = 72
  218. end
  219. object GLBumpShader1: TGLBumpShader
  220. BumpMethod = bmDot3TexCombiner
  221. BumpSpace = bsObject
  222. BumpOptions = []
  223. SpecularMode = smOff
  224. DesignTimeEnabled = False
  225. ParallaxOffset = 0.039999999105930330
  226. Left = 136
  227. Top = 136
  228. end
  229. object ColorDialog1: TColorDialog
  230. Left = 352
  231. Top = 72
  232. end
  233. object AsyncTimer1: TGLAsyncTimer
  234. Enabled = True
  235. OnTimer = AsyncTimer1Timer
  236. ThreadPriority = tpNormal
  237. Left = 248
  238. Top = 72
  239. end
  240. end