fShaderCompD.dfm 6.6 KB

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