Unit1.dfm 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'GLSL Diffuse Specular Shader'
  5. ClientHeight = 426
  6. ClientWidth = 577
  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. Position = poScreenCenter
  15. WindowState = wsMaximized
  16. OnCreate = FormCreate
  17. PixelsPerInch = 96
  18. TextHeight = 13
  19. object Viewer: TGLSceneViewer
  20. Left = 0
  21. Top = 0
  22. Width = 577
  23. Height = 381
  24. Camera = Camera
  25. Buffer.FogEnvironment.FogColor.Color = {ACC8483E9A99193FCDCC4C3F9A99993E}
  26. Buffer.FogEnvironment.FogStart = 50.000000000000000000
  27. Buffer.FogEnvironment.FogEnd = 5000.000000000000000000
  28. Buffer.FogEnvironment.FogDistance = fdEyeRadial
  29. Buffer.BackgroundColor = clBackground
  30. Buffer.ContextOptions = [roDoubleBuffer, roStencilBuffer, roRenderToWindow]
  31. Buffer.AntiAliasing = aaNone
  32. Buffer.DepthPrecision = dp24bits
  33. Buffer.ColorDepth = cd24bits
  34. FieldOfView = 142.319961547851600000
  35. Align = alClient
  36. TabOrder = 0
  37. end
  38. object Panel1: TPanel
  39. Left = 0
  40. Top = 381
  41. Width = 577
  42. Height = 45
  43. Align = alBottom
  44. TabOrder = 1
  45. object LightMovingCheckBox: TCheckBox
  46. Left = 8
  47. Top = 8
  48. Width = 97
  49. Height = 17
  50. Caption = 'Light is Moving'
  51. Checked = True
  52. Color = clBtnFace
  53. ParentColor = False
  54. State = cbChecked
  55. TabOrder = 0
  56. end
  57. object ShaderEnabledCheckBox: TCheckBox
  58. Left = 176
  59. Top = 8
  60. Width = 97
  61. Height = 17
  62. Caption = 'Shader Enabled'
  63. Checked = True
  64. State = cbChecked
  65. TabOrder = 1
  66. end
  67. object PitchRollTurnCheckBox: TCheckBox
  68. Left = 8
  69. Top = 24
  70. Width = 137
  71. Height = 17
  72. Caption = 'Pitch-Roll-Turn Enabled'
  73. Checked = True
  74. State = cbChecked
  75. TabOrder = 2
  76. end
  77. object RealisticSpecularCheckBox: TCheckBox
  78. Left = 336
  79. Top = 8
  80. Width = 137
  81. Height = 17
  82. Caption = 'Realistic Specular Mode'
  83. TabOrder = 3
  84. OnClick = RealisticSpecularCheckBoxClick
  85. end
  86. object MultiLightShaderCheckBox: TCheckBox
  87. Left = 176
  88. Top = 24
  89. Width = 113
  90. Height = 17
  91. Caption = 'MultiLight Shader'
  92. TabOrder = 4
  93. OnClick = MultiLightShaderCheckBoxClick
  94. end
  95. object EnableFogCheckBox: TCheckBox
  96. Left = 336
  97. Top = 24
  98. Width = 137
  99. Height = 17
  100. Caption = 'Enable fog'
  101. TabOrder = 5
  102. OnClick = EnableFogCheckBoxClick
  103. end
  104. end
  105. object Scene: TGLScene
  106. ObjectsSorting = osNone
  107. Left = 24
  108. Top = 16
  109. object GUICube: TGLDummyCube
  110. CubeSize = 1.000000000000000000
  111. object GLArrowLine1: TGLArrowLine
  112. Position.Coordinates = {00000000000000000000C8420000803F}
  113. Scale.Coordinates = {0000A0410000A0410000A04100000000}
  114. BottomRadius = 0.100000001490116100
  115. Height = 1.000000000000000000
  116. TopRadius = 0.100000001490116100
  117. TopArrowHeadHeight = 0.500000000000000000
  118. TopArrowHeadRadius = 0.200000002980232200
  119. BottomArrowHeadHeight = 0.500000000000000000
  120. BottomArrowHeadRadius = 0.200000002980232200
  121. end
  122. object GLXYZGrid1: TGLXYZGrid
  123. Direction.Coordinates = {00000000000080BF0000000000000000}
  124. Position.Coordinates = {00000000000000000000A0C10000803F}
  125. Up.Coordinates = {00000000000000000000803F00000000}
  126. XSamplingScale.Min = -200.000000000000000000
  127. XSamplingScale.Max = 200.000000000000000000
  128. XSamplingScale.Step = 20.000000000000000000
  129. YSamplingScale.Min = -200.000000000000000000
  130. YSamplingScale.Max = 200.000000000000000000
  131. YSamplingScale.Step = 20.000000000000000000
  132. ZSamplingScale.Min = -200.000000000000000000
  133. ZSamplingScale.Max = 200.000000000000000000
  134. ZSamplingScale.Step = 20.000000000000000000
  135. Parts = [gpX, gpZ]
  136. end
  137. end
  138. object LightCube: TGLDummyCube
  139. Direction.Coordinates = {0000000000000000000080BF00000000}
  140. Position.Coordinates = {000096C300000000000096430000803F}
  141. OnProgress = LightCubeProgress
  142. CubeSize = 1.000000000000000000
  143. object Light: TGLLightSource
  144. ConstAttenuation = 1.000000000000000000
  145. LightStyle = lsOmni
  146. Specular.Color = {0000803F0000803F0000803F0000803F}
  147. SpotCutOff = 180.000000000000000000
  148. end
  149. object GLSphere1: TGLSphere
  150. Material.FrontProperties.Diffuse.Color = {E6E5653F8180003DCDCC4C3F0000803F}
  151. Material.FrontProperties.Emission.Color = {F4F3733FEEED6D3F000000000000803F}
  152. Radius = 10.000000000000000000
  153. end
  154. end
  155. object LightCube2: TGLDummyCube
  156. Position.Coordinates = {000048430000C8C2000096430000803F}
  157. Visible = False
  158. CubeSize = 1.000000000000000000
  159. object Light2: TGLLightSource
  160. Ambient.Color = {CDCCCC3DCDCCCC3DCDCCCC3D0000803F}
  161. ConstAttenuation = 1.000000000000000000
  162. Diffuse.Color = {DCD8583FC6BF3F3FDCD8583F0000803F}
  163. Shining = False
  164. Specular.Color = {0000803F0000003F0000003F0000803F}
  165. SpotCutOff = 180.000000000000000000
  166. end
  167. object GLSphere2: TGLSphere
  168. Material.FrontProperties.Ambient.Color = {F6F5753FCDCC4C3ECDCC4C3E0000803F}
  169. Material.FrontProperties.Diffuse.Color = {EAE9693FCDCC4C3FCDCC4C3F0000803F}
  170. Material.FrontProperties.Emission.Color = {F0EF6F3F00000000000000000000803F}
  171. Radius = 10.000000000000000000
  172. end
  173. end
  174. object WorldCube: TGLDummyCube
  175. ShowAxes = True
  176. CubeSize = 1.000000000000000000
  177. object Fighter: TGLActor
  178. Material.MaterialLibrary = MaterialLibrary
  179. Material.LibMaterialName = 'Fighter'
  180. Position.Coordinates = {0000164300000000000048420000803F}
  181. Up.Coordinates = {00000000000080BF0000000000000000}
  182. Interval = 100
  183. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  184. end
  185. object Teapot: TGLActor
  186. Material.MaterialLibrary = MaterialLibrary
  187. Material.LibMaterialName = 'Fighter'
  188. Position.Coordinates = {000016C300000000000000000000803F}
  189. Interval = 100
  190. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  191. end
  192. object Sphere_big: TGLActor
  193. Material.MaterialLibrary = MaterialLibrary
  194. Material.LibMaterialName = 'Earth'
  195. Position.Coordinates = {00000000000016C3000000000000803F}
  196. Interval = 100
  197. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  198. end
  199. object Sphere_little: TGLActor
  200. Material.MaterialLibrary = MaterialLibrary
  201. Material.LibMaterialName = 'Earth'
  202. Position.Coordinates = {0000000000001643000000000000803F}
  203. Interval = 100
  204. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  205. end
  206. end
  207. object Camera: TGLCamera
  208. DepthOfView = 500.000000000000000000
  209. FocalLength = 65.000000000000000000
  210. SceneScale = 1.500000000000000000
  211. TargetObject = GLXYZGrid1
  212. CameraStyle = csInfinitePerspective
  213. Position.Coordinates = {000016C30000E1430000B4430000803F}
  214. Direction.Coordinates = {00000000000080BF0000000000000000}
  215. Up.Coordinates = {00000000000000000000803F00000000}
  216. end
  217. end
  218. object Cadencer: TGLCadencer
  219. Scene = Scene
  220. MaxDeltaTime = 0.020000000000000000
  221. OnProgress = CadencerProgress
  222. Left = 24
  223. Top = 56
  224. end
  225. object MaterialLibrary: TGLMaterialLibrary
  226. Materials = <
  227. item
  228. Name = 'Fighter'
  229. Tag = 0
  230. Material.FrontProperties.Ambient.Color = {BFBEBE3EBBBABA3EBBBABA3E0000803F}
  231. Material.FrontProperties.Emission.Color = {B1B0B03DB1B0B03DB1B0B03D0000803F}
  232. Material.FrontProperties.Specular.Color = {8988083E8180003E8988083E0000803F}
  233. Material.BlendingMode = bmTransparency
  234. Material.Texture.TextureMode = tmModulate
  235. Material.Texture.Disabled = False
  236. end
  237. item
  238. Name = 'Earth'
  239. Tag = 0
  240. Material.FrontProperties.Ambient.Color = {C1C0403DC1C0403D8180003D0000803F}
  241. Material.FrontProperties.Emission.Color = {A1A0203DA1A0203DC1C0403D0000803F}
  242. Material.FrontProperties.Shininess = 128
  243. Material.FrontProperties.Specular.Color = {0000803F0000803F0000803F0000803F}
  244. Material.BlendingMode = bmTransparency
  245. Material.Texture.TextureMode = tmModulate
  246. Material.Texture.Disabled = False
  247. end>
  248. Left = 24
  249. Top = 144
  250. end
  251. object DiffuseSpecularShader: TGLSLDiffuseSpecularShader
  252. LightPower = 1.000000000000000000
  253. Left = 176
  254. Top = 16
  255. end
  256. object GLSimpleNavigation1: TGLSimpleNavigation
  257. Form = Owner
  258. GLSceneViewer = Viewer
  259. FormCaption = 'GLSL Diffuse Specular Shader - %FPS'
  260. KeyCombinations = <
  261. item
  262. ShiftState = [ssLeft, ssRight]
  263. Action = snaZoom
  264. end
  265. item
  266. ShiftState = [ssLeft]
  267. Action = snaMoveAroundTarget
  268. end
  269. item
  270. ShiftState = [ssRight]
  271. Action = snaMoveAroundTarget
  272. end>
  273. Left = 176
  274. Top = 64
  275. end
  276. end