fShaderComponent.dfm 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. object GLSLTestForm: TGLSLTestForm
  2. Left = 261
  3. Top = 176
  4. Caption = 'GLSL Shader Component'
  5. ClientHeight = 404
  6. ClientWidth = 610
  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. OldCreateOrder = False
  14. Position = poScreenCenter
  15. OnClose = FormClose
  16. OnCreate = FormCreate
  17. PixelsPerInch = 96
  18. TextHeight = 13
  19. object Viewer: TGLSceneViewer
  20. Left = 0
  21. Top = 0
  22. Width = 610
  23. Height = 375
  24. Camera = Camera
  25. Buffer.BackgroundColor = clBackground
  26. Buffer.ContextOptions = [roDoubleBuffer, roStencilBuffer, roRenderToWindow]
  27. Buffer.AntiAliasing = aaNone
  28. Buffer.DepthPrecision = dp24bits
  29. Buffer.ColorDepth = cd24bits
  30. FieldOfView = 141.760543823242200000
  31. PenAsTouch = False
  32. Align = alClient
  33. TabOrder = 0
  34. end
  35. object Panel1: TPanel
  36. Left = 0
  37. Top = 375
  38. Width = 610
  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 TurnPitchrollCheckBox: TCheckBox
  66. Left = 112
  67. Top = 8
  68. Width = 137
  69. Height = 17
  70. Caption = 'Turn-Pitch-Roll 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 = 'WasteSkin'
  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 = 'Earth'
  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 = 'Earth'
  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 = 'Earth'
  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 = 88
  170. Top = 16
  171. end
  172. object MaterialLibrary: TGLMaterialLibrary
  173. Materials = <
  174. item
  175. Name = 'Earth'
  176. Tag = 0
  177. Material.FrontProperties.Emission.Color = {A1A0A03D9190903D8180803D0000803F}
  178. Material.FrontProperties.Specular.Color = {DEDD5D3FDCDB5B3FDCDB5B3F0000803F}
  179. Shader = GLSLShader
  180. end
  181. item
  182. Name = 'WasteSkin'
  183. Tag = 0
  184. Shader = GLSLShader
  185. end>
  186. Left = 168
  187. Top = 16
  188. end
  189. object GLSLShader: TGLSLShader
  190. Enabled = False
  191. OnApply = GLSLShaderApply
  192. OnApplyEx = GLSLShaderApplyEx
  193. OnUnApply = GLSLShaderUnApply
  194. OnInitialize = GLSLShaderInitialize
  195. ShaderStyle = ssReplace
  196. Left = 32
  197. Top = 72
  198. end
  199. object GLSimpleNavigation1: TGLSimpleNavigation
  200. Form = Owner
  201. GLSceneViewer = Viewer
  202. FormCaption = 'GLSL Shader Component - %FPS'
  203. KeyCombinations = <
  204. item
  205. ShiftState = [ssLeft, ssRight]
  206. Action = snaZoom
  207. end
  208. item
  209. ShiftState = [ssLeft]
  210. Action = snaMoveAroundTarget
  211. end
  212. item
  213. ShiftState = [ssRight]
  214. Action = snaMoveAroundTarget
  215. end>
  216. Left = 256
  217. Top = 16
  218. end
  219. end