Unit1.dfm 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'GLSL Bump Shader'
  5. ClientHeight = 434
  6. ClientWidth = 566
  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. WindowState = wsMaximized
  15. OnClose = FormClose
  16. OnCreate = FormCreate
  17. OnMouseWheel = FormMouseWheel
  18. PixelsPerInch = 96
  19. TextHeight = 13
  20. object Viewer: TGLSceneViewer
  21. Left = 0
  22. Top = 0
  23. Width = 566
  24. Height = 387
  25. Camera = Camera
  26. Buffer.BackgroundColor = clBackground
  27. Buffer.ContextOptions = [roDoubleBuffer, roStencilBuffer, roRenderToWindow]
  28. Buffer.AntiAliasing = aaNone
  29. Buffer.DepthPrecision = dp24bits
  30. Buffer.ColorDepth = cd24bits
  31. FieldOfView = 142.863815307617200000
  32. Align = alClient
  33. OnMouseDown = ViewerMouseDown
  34. OnMouseMove = ViewerMouseMove
  35. TabOrder = 0
  36. end
  37. object Panel1: TPanel
  38. Left = 0
  39. Top = 387
  40. Width = 566
  41. Height = 47
  42. Align = alBottom
  43. TabOrder = 1
  44. object LightMovingCheckBox: TCheckBox
  45. Left = 8
  46. Top = 8
  47. Width = 97
  48. Height = 17
  49. Caption = 'Light is Moving'
  50. Checked = True
  51. Color = clBtnFace
  52. ParentColor = False
  53. State = cbChecked
  54. TabOrder = 0
  55. end
  56. object RollPitchTurnCheckBox: TCheckBox
  57. Left = 8
  58. Top = 24
  59. Width = 161
  60. Height = 17
  61. Caption = 'Roll / Pitch / Turn Enabled'
  62. Checked = True
  63. State = cbChecked
  64. TabOrder = 1
  65. end
  66. object ShaderEnabledCheckBox: TCheckBox
  67. Left = 176
  68. Top = 8
  69. Width = 97
  70. Height = 17
  71. Caption = 'Shader Enabled'
  72. TabOrder = 2
  73. OnClick = ShaderEnabledCheckBoxClick
  74. end
  75. object MultiLightShaderCheckBox: TCheckBox
  76. Left = 176
  77. Top = 24
  78. Width = 106
  79. Height = 17
  80. Caption = 'MultiLight Shader'
  81. Checked = True
  82. State = cbChecked
  83. TabOrder = 3
  84. OnClick = MultiLightShaderCheckBoxClick
  85. end
  86. object UseSpecularTextureCheckBox: TCheckBox
  87. Left = 320
  88. Top = 8
  89. Width = 121
  90. Height = 17
  91. Caption = 'Use Specular Texture'
  92. Checked = True
  93. State = cbChecked
  94. TabOrder = 4
  95. OnClick = UseSpecularTextureCheckBoxClick
  96. end
  97. object UseNormalTextureCheckBox: TCheckBox
  98. Left = 320
  99. Top = 24
  100. Width = 121
  101. Height = 17
  102. Caption = 'Use Normal Texture'
  103. Checked = True
  104. State = cbChecked
  105. TabOrder = 5
  106. OnClick = UseNormalTextureCheckBoxClick
  107. end
  108. object ShowNotGLSceneObjectsCheckBox: TCheckBox
  109. Left = 456
  110. Top = 8
  111. Width = 185
  112. Height = 17
  113. Caption = 'Show not GLScene objects'
  114. Checked = True
  115. State = cbChecked
  116. TabOrder = 6
  117. OnClick = ShowNotGLSceneObjectsCheckBoxClick
  118. end
  119. end
  120. object Scene: TGLScene
  121. ObjectsSorting = osNone
  122. Left = 24
  123. Top = 16
  124. object GUICube: TGLDummyCube
  125. CubeSize = 1.000000000000000000
  126. object GLArrowLine1: TGLArrowLine
  127. Position.Coordinates = {00000000000000000000C8420000803F}
  128. Scale.Coordinates = {0000A0410000A0410000A04100000000}
  129. BottomRadius = 0.100000001490116100
  130. Height = 1.000000000000000000
  131. TopRadius = 0.100000001490116100
  132. TopArrowHeadHeight = 0.500000000000000000
  133. TopArrowHeadRadius = 0.200000002980232200
  134. BottomArrowHeadHeight = 0.500000000000000000
  135. BottomArrowHeadRadius = 0.200000002980232200
  136. end
  137. object GLXYZGrid1: TGLXYZGrid
  138. Direction.Coordinates = {00000000000080BF0000000000000000}
  139. Position.Coordinates = {00000000000000000000A0C10000803F}
  140. Up.Coordinates = {00000000000000000000803F00000000}
  141. XSamplingScale.Min = -200.000000000000000000
  142. XSamplingScale.Max = 200.000000000000000000
  143. XSamplingScale.Step = 20.000000000000000000
  144. YSamplingScale.Min = -200.000000000000000000
  145. YSamplingScale.Max = 200.000000000000000000
  146. YSamplingScale.Step = 20.000000000000000000
  147. ZSamplingScale.Min = -200.000000000000000000
  148. ZSamplingScale.Max = 200.000000000000000000
  149. ZSamplingScale.Step = 20.000000000000000000
  150. Parts = [gpX, gpZ]
  151. end
  152. end
  153. object LightCube: TGLDummyCube
  154. Direction.Coordinates = {0000000000000000000080BF00000000}
  155. Position.Coordinates = {000096C3000096C3000096430000803F}
  156. OnProgress = LightCubeProgress
  157. CubeSize = 1.000000000000000000
  158. object Light: TGLLightSource
  159. Ambient.Color = {9A99193E9A99193E9A99193E0000803F}
  160. ConstAttenuation = 1.000000000000000000
  161. LightStyle = lsOmni
  162. Specular.Color = {0000803F0000803F0000803F0000803F}
  163. SpotCutOff = 180.000000000000000000
  164. end
  165. object GLSphere1: TGLSphere
  166. Material.FrontProperties.Diffuse.Color = {E6E5653F8180003DCDCC4C3F0000803F}
  167. Material.FrontProperties.Emission.Color = {F4F3733FEEED6D3F000000000000803F}
  168. Radius = 10.000000000000000000
  169. end
  170. end
  171. object LightCube2: TGLDummyCube
  172. Position.Coordinates = {000048430000C8C2000096430000803F}
  173. Visible = False
  174. CubeSize = 1.000000000000000000
  175. object Light2: TGLLightSource
  176. Ambient.Color = {CDCCCC3DCDCCCC3DCDCCCC3D0000803F}
  177. ConstAttenuation = 1.000000000000000000
  178. Diffuse.Color = {DCD8583FC6BF3F3FDCD8583F0000803F}
  179. Shining = False
  180. Specular.Color = {0000803F0000003F0000003F0000803F}
  181. SpotCutOff = 180.000000000000000000
  182. end
  183. object GLSphere2: TGLSphere
  184. Material.FrontProperties.Ambient.Color = {F6F5753FCDCC4C3ECDCC4C3E0000803F}
  185. Material.FrontProperties.Diffuse.Color = {EAE9693FCDCC4C3FCDCC4C3F0000803F}
  186. Material.FrontProperties.Emission.Color = {F0EF6F3F00000000000000000000803F}
  187. Radius = 10.000000000000000000
  188. end
  189. end
  190. object WorldCube: TGLDummyCube
  191. ObjectsSorting = osRenderBlendedLast
  192. ShowAxes = True
  193. CubeSize = 1.000000000000000000
  194. object Sphere_little: TGLActor
  195. Material.MaterialLibrary = MaterialLibrary
  196. Material.LibMaterialName = 'Earth'
  197. Position.Coordinates = {0000000000001643000000000000803F}
  198. Interval = 100
  199. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  200. end
  201. object Sphere_big: TGLActor
  202. Material.MaterialLibrary = MaterialLibrary
  203. Material.LibMaterialName = 'Earth'
  204. Position.Coordinates = {00000000000016C3000000000000803F}
  205. Interval = 100
  206. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  207. end
  208. object Teapot: TGLActor
  209. Material.MaterialLibrary = MaterialLibrary
  210. Material.LibMaterialName = 'Earth'
  211. Position.Coordinates = {000016C300000000000000000000803F}
  212. Visible = False
  213. Interval = 100
  214. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  215. end
  216. object Fighter: TGLActor
  217. Position.Coordinates = {0000164300000000000000000000803F}
  218. Visible = False
  219. Interval = 100
  220. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  221. MaterialLibrary = TrinityMatlib
  222. end
  223. object GLCube: TGLCube
  224. Material.MaterialLibrary = MaterialLibrary
  225. Material.LibMaterialName = 'Earth'
  226. Visible = False
  227. CubeSize = {000096420000964200009642}
  228. end
  229. object GLDodecahedron: TGLDodecahedron
  230. Material.MaterialLibrary = MaterialLibrary
  231. Material.LibMaterialName = 'Earth'
  232. Position.Coordinates = {00001643000016C3000000000000803F}
  233. Scale.Coordinates = {0000C8420000C8420000C84200000000}
  234. Visible = False
  235. end
  236. object GLSphere: TGLSphere
  237. Material.MaterialLibrary = MaterialLibrary
  238. Material.LibMaterialName = 'Earth'
  239. Direction.Coordinates = {00000000000080BF0000000000000000}
  240. Position.Coordinates = {000016C300001643000000000000803F}
  241. Up.Coordinates = {00000000000000000000803F00000000}
  242. Visible = False
  243. Radius = 50.000000000000000000
  244. end
  245. end
  246. object Camera: TGLCamera
  247. DepthOfView = 500.000000000000000000
  248. FocalLength = 65.000000000000000000
  249. TargetObject = GLXYZGrid1
  250. CameraStyle = csInfinitePerspective
  251. Position.Coordinates = {0000000000004842000048430000803F}
  252. Direction.Coordinates = {00000000000080BF0000000000000000}
  253. Up.Coordinates = {00000000000000000000803F00000000}
  254. end
  255. end
  256. object Cadencer: TGLCadencer
  257. Scene = Scene
  258. MaxDeltaTime = 0.020000000000000000
  259. OnProgress = CadencerProgress
  260. Left = 24
  261. Top = 56
  262. end
  263. object Timer1: TTimer
  264. Interval = 650
  265. OnTimer = Timer1Timer
  266. Left = 24
  267. Top = 136
  268. end
  269. object MaterialLibrary: TGLMaterialLibrary
  270. Materials = <
  271. item
  272. Name = 'Earth'
  273. Tag = 0
  274. Material.FrontProperties.Ambient.Color = {E7E6E63EEBEAEA3EEBEAEA3E0000803F}
  275. Material.FrontProperties.Emission.Color = {F1F0F03DF1F0F03DF1F0F03D0000803F}
  276. Material.FrontProperties.Specular.Color = {8180003E8180003EE1E0E03D0000803F}
  277. Material.Texture.TextureMode = tmModulate
  278. Material.Texture.Disabled = False
  279. Material.MaterialLibrary = MaterialLibrary
  280. end
  281. item
  282. Name = 'EarthNormals'
  283. Tag = 0
  284. Material.Texture.Disabled = False
  285. end
  286. item
  287. Name = 'EarthHeight'
  288. Tag = 0
  289. end
  290. item
  291. Name = 'EarthGross'
  292. Tag = 0
  293. Material.Texture.Disabled = False
  294. end>
  295. Left = 24
  296. Top = 88
  297. end
  298. object MyBumpShader: TGLSLBumpShader
  299. NormalTextureName = 'EarthNormals'
  300. SpecularTextureName = 'EarthGross'
  301. MaterialLibrary = MaterialLibrary
  302. BumpHeight = 0.500000000000000000
  303. BumpSmoothness = 300
  304. SpecularPower = 6.000000000000000000
  305. SpecularSpread = 1.500000000000000000
  306. LightPower = 1.000000000000000000
  307. Left = 56
  308. Top = 16
  309. end
  310. object TrinityMatlib: TGLMaterialLibrary
  311. Left = 56
  312. Top = 88
  313. end
  314. end