fShaderComponentC.dfm 6.9 KB

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