Unit1.dfm 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'GLSL Shader Component'
  5. ClientHeight = 409
  6. ClientWidth = 562
  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. OnClose = FormClose
  17. OnCreate = FormCreate
  18. PixelsPerInch = 96
  19. TextHeight = 13
  20. object Viewer: TGLSceneViewer
  21. Left = 0
  22. Top = 0
  23. Width = 562
  24. Height = 380
  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.227828979492200000
  32. Align = alClient
  33. TabOrder = 0
  34. end
  35. object Panel1: TPanel
  36. Left = 0
  37. Top = 380
  38. Width = 562
  39. Height = 29
  40. Align = alBottom
  41. TabOrder = 1
  42. object LightMovingCheckBox: TCheckBox
  43. Left = 8
  44. Top = 8
  45. Width = 97
  46. Height = 17
  47. Caption = 'Light is Moving'
  48. Checked = True
  49. Color = clBtnFace
  50. ParentColor = False
  51. State = cbChecked
  52. TabOrder = 0
  53. end
  54. object ShadeEnabledCheckBox: TCheckBox
  55. Left = 288
  56. Top = 8
  57. Width = 97
  58. Height = 17
  59. Caption = 'Shader Enabled'
  60. Checked = True
  61. State = cbChecked
  62. TabOrder = 1
  63. OnClick = ShadeEnabledCheckBoxClick
  64. end
  65. object PitchRollTurnCheckBox: TCheckBox
  66. Left = 112
  67. Top = 8
  68. Width = 137
  69. Height = 17
  70. Caption = 'Pitch-Roll-Turn Enabled'
  71. TabOrder = 2
  72. end
  73. end
  74. object Scene: TGLScene
  75. ObjectsSorting = osNone
  76. Left = 24
  77. Top = 16
  78. object GUICube: TGLDummyCube
  79. CubeSize = 1.000000000000000000
  80. object GLArrowLine1: TGLArrowLine
  81. Position.Coordinates = {00000000000000000000C8420000803F}
  82. Scale.Coordinates = {0000A0410000A0410000A04100000000}
  83. BottomRadius = 0.100000001490116100
  84. Height = 1.000000000000000000
  85. TopRadius = 0.100000001490116100
  86. TopArrowHeadHeight = 0.500000000000000000
  87. TopArrowHeadRadius = 0.200000002980232200
  88. BottomArrowHeadHeight = 0.500000000000000000
  89. BottomArrowHeadRadius = 0.200000002980232200
  90. end
  91. object GLXYZGrid1: TGLXYZGrid
  92. Direction.Coordinates = {00000000000080BF0000000000000000}
  93. Position.Coordinates = {00000000000000000000A0C10000803F}
  94. Up.Coordinates = {00000000000000000000803F00000000}
  95. XSamplingScale.Min = -200.000000000000000000
  96. XSamplingScale.Max = 200.000000000000000000
  97. XSamplingScale.Step = 20.000000000000000000
  98. YSamplingScale.Min = -200.000000000000000000
  99. YSamplingScale.Max = 200.000000000000000000
  100. YSamplingScale.Step = 20.000000000000000000
  101. ZSamplingScale.Min = -200.000000000000000000
  102. ZSamplingScale.Max = 200.000000000000000000
  103. ZSamplingScale.Step = 20.000000000000000000
  104. Parts = [gpX, gpZ]
  105. end
  106. end
  107. object LightCube: TGLDummyCube
  108. Direction.Coordinates = {0000000000000000000080BF00000000}
  109. Position.Coordinates = {000096C300000000000096430000803F}
  110. OnProgress = LightCubeProgress
  111. CubeSize = 1.000000000000000000
  112. object Light: TGLLightSource
  113. ConstAttenuation = 1.000000000000000000
  114. LightStyle = lsOmni
  115. SpotCutOff = 180.000000000000000000
  116. end
  117. object GLSphere1: TGLSphere
  118. Material.FrontProperties.Diffuse.Color = {E6E5653F8180003DCDCC4C3F0000803F}
  119. Material.FrontProperties.Emission.Color = {F4F3733FEEED6D3F000000000000803F}
  120. Radius = 10.000000000000000000
  121. end
  122. end
  123. object WorldCube: TGLDummyCube
  124. CubeSize = 1.000000000000000000
  125. object Fighter: TGLActor
  126. Material.MaterialLibrary = MaterialLibrary
  127. Material.LibMaterialName = 'ShaderMaterial'
  128. Position.Coordinates = {0000164300000000000000000000803F}
  129. Up.Coordinates = {00000000000080BF0000008000000000}
  130. Interval = 100
  131. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  132. end
  133. object Teapot: TGLActor
  134. Material.MaterialLibrary = MaterialLibrary
  135. Material.LibMaterialName = 'ShaderMaterial'
  136. Position.Coordinates = {000016C300000000000000000000803F}
  137. Interval = 100
  138. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  139. end
  140. object Sphere_big: TGLActor
  141. Material.MaterialLibrary = MaterialLibrary
  142. Material.LibMaterialName = 'ShaderMaterial'
  143. Position.Coordinates = {00000000000016C3000000000000803F}
  144. Interval = 100
  145. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  146. end
  147. object Sphere_little: TGLActor
  148. Material.MaterialLibrary = MaterialLibrary
  149. Material.LibMaterialName = 'ShaderMaterial'
  150. Position.Coordinates = {0000000000001643000000000000803F}
  151. Interval = 100
  152. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  153. end
  154. end
  155. object Camera: TGLCamera
  156. DepthOfView = 500.000000000000000000
  157. FocalLength = 65.000000000000000000
  158. TargetObject = GLXYZGrid1
  159. CameraStyle = csInfinitePerspective
  160. Position.Coordinates = {000048C20000164300007A430000803F}
  161. Direction.Coordinates = {00000000000080BF0000000000000000}
  162. Up.Coordinates = {00000000000000000000803F00000000}
  163. end
  164. end
  165. object Cadencer: TGLCadencer
  166. Scene = Scene
  167. MaxDeltaTime = 0.020000000000000000
  168. OnProgress = CadencerProgress
  169. Left = 24
  170. Top = 72
  171. end
  172. object MaterialLibrary: TGLMaterialLibrary
  173. Materials = <
  174. item
  175. Name = 'Earth'
  176. Tag = 0
  177. Material.FrontProperties.Ambient.Color = {BFBEBE3EBBBABA3EBBBABA3E0000803F}
  178. Material.FrontProperties.Emission.Color = {B1B0B03DB1B0B03DB1B0B03D0000803F}
  179. Material.FrontProperties.Specular.Color = {8988083E8180003E8988083E0000803F}
  180. Material.BlendingMode = bmTransparency
  181. Material.Texture.TextureMode = tmModulate
  182. Material.Texture.Disabled = False
  183. end
  184. item
  185. Name = 'ShaderMaterial'
  186. Tag = 0
  187. Material.FrontProperties.Emission.Color = {A1A0A03D9190903D8180803D0000803F}
  188. Material.FrontProperties.Specular.Color = {DEDD5D3FDCDB5B3FDCDB5B3F0000803F}
  189. Shader = GLSLShader
  190. end>
  191. Left = 96
  192. Top = 16
  193. end
  194. object GLSLShader: TGLSLShader
  195. Enabled = False
  196. OnApply = GLSLShaderApply
  197. OnUnApply = GLSLShaderUnApply
  198. OnInitialize = GLSLShaderInitialize
  199. Left = 96
  200. Top = 72
  201. end
  202. object GLSimpleNavigation1: TGLSimpleNavigation
  203. Form = Owner
  204. GLSceneViewer = Viewer
  205. FormCaption = 'GLSL Shader Component - %FPS'
  206. KeyCombinations = <
  207. item
  208. ShiftState = [ssLeft, ssRight]
  209. Action = snaZoom
  210. end
  211. item
  212. ShiftState = [ssLeft]
  213. Action = snaMoveAroundTarget
  214. end
  215. item
  216. ShiftState = [ssRight]
  217. Action = snaMoveAroundTarget
  218. end>
  219. Left = 200
  220. Top = 16
  221. end
  222. end