fdBunnyBump.dfm 5.8 KB

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