fShaderCompC.dfm 7.0 KB

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