fcSimpleShader.dfm 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. object Form1: TForm1
  2. Left = 296
  3. Top = 145
  4. Caption = 'Simple GLSL Shader'
  5. ClientHeight = 551
  6. ClientWidth = 787
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -10
  11. Font.Name = 'MS Sans Serif'
  12. Font.Style = []
  13. Position = poScreenCenter
  14. OnClose = FormClose
  15. OnCreate = FormCreate
  16. TextHeight = 13
  17. object GLSceneViewer1: TGLSceneViewer
  18. Left = 0
  19. Top = 0
  20. Width = 787
  21. Height = 551
  22. Margins.Left = 2
  23. Margins.Top = 2
  24. Margins.Right = 2
  25. Margins.Bottom = 2
  26. Camera = Cam
  27. Buffer.BackgroundColor = 4194304
  28. Buffer.ContextOptions = [roDoubleBuffer, roStencilBuffer, roRenderToWindow, roDestinationAlpha]
  29. FieldOfView = 147.615402221679700000
  30. PenAsTouch = False
  31. Align = alClient
  32. OnMouseDown = GLSceneViewer1MouseDown
  33. TabOrder = 0
  34. ExplicitWidth = 795
  35. end
  36. object GLScene1: TGLScene
  37. Left = 176
  38. Top = 40
  39. object GLDOInitialize: TGLDirectOpenGL
  40. UseBuildList = False
  41. OnRender = GLDOInitializeRender
  42. Blend = False
  43. end
  44. object Scene: TGLDummyCube
  45. CubeSize = 1.000000000000000000
  46. object GLCube1: TGLCube
  47. Material.FrontProperties.Diffuse.Color = {9998183F00000000000000000000803F}
  48. Position.Coordinates = {000040C000000000000000000000803F}
  49. Visible = False
  50. CubeSize = {0000403F0000403F0000403F}
  51. end
  52. object GLSphere1: TGLSphere
  53. Material.FrontProperties.Ambient.Color = {00000000000000001283003F0000803F}
  54. Material.FrontProperties.Diffuse.Color = {00000000000000008180003F0000803F}
  55. Material.FrontProperties.Emission.Color = {00000000000000001283003F0000803F}
  56. Material.FrontProperties.Shininess = 16
  57. Material.Texture.TextureMode = tmModulate
  58. Material.Texture.Disabled = False
  59. Material.FaceCulling = fcCull
  60. Visible = False
  61. Radius = 0.500000000000000000
  62. end
  63. object GLCone1: TGLCone
  64. Material.FrontProperties.Diffuse.Color = {0000803FA5A4243F000000000000803F}
  65. Position.Coordinates = {0000404000000000000000000000803F}
  66. Visible = False
  67. BottomRadius = 0.500000000000000000
  68. Height = 1.000000000000000000
  69. end
  70. object GLFreeForm1: TGLFreeForm
  71. Material.FrontProperties.Ambient.Color = {D3D2D23EE3E2E23EE3E2E23E0000803F}
  72. Material.FrontProperties.Diffuse.Color = {000000009B9A1A3F000000000000803F}
  73. Material.Texture.Disabled = False
  74. Direction.Coordinates = {000000000000803F0000000000000000}
  75. Position.Coordinates = {000000000000803F000000000000803F}
  76. Scale.Coordinates = {8FC2753C8FC2753C8FC2753C00000000}
  77. Up.Coordinates = {0000000000000000000080BF00000000}
  78. Visible = False
  79. AutoCentering = [macCenterX, macCenterY, macCenterZ, macUseBarycenter]
  80. UseMeshMaterials = False
  81. end
  82. end
  83. object DummyLight: TGLDummyCube
  84. CubeSize = 1.000000000000000000
  85. object Light: TGLLightSource
  86. ConstAttenuation = 1.000000000000000000
  87. Position.Coordinates = {0000000000002041000000000000803F}
  88. LightStyle = lsOmni
  89. Specular.Color = {0000803F0000803F0000803F0000803F}
  90. SpotCutOff = 180.000000000000000000
  91. end
  92. end
  93. object GLHUDText1: TGLHUDText
  94. BitmapFont = GLWindowsBitmapFont1
  95. Text = 'Keyboard [ 1,2,3,4,5,6,7,8,9,0 ]'
  96. Rotation = 0.000000000000000000
  97. end
  98. object Cam: TGLCamera
  99. DepthOfView = 1000.000000000000000000
  100. FocalLength = 80.000000000000000000
  101. TargetObject = Scene
  102. Position.Coordinates = {00000000000000000000A0C00000803F}
  103. Direction.Coordinates = {00000000000000800000803F00000000}
  104. end
  105. end
  106. object GLCadencer1: TGLCadencer
  107. Scene = GLScene1
  108. MaxDeltaTime = 0.020000000000000000
  109. OnProgress = GLCadencer1Progress
  110. Left = 296
  111. Top = 40
  112. end
  113. object GLUserShader1: TGLUserShader
  114. OnDoApply = GLUserShader1DoApply
  115. OnDoUnApply = GLUserShader1DoUnApply
  116. ShaderStyle = ssHighLevel
  117. Left = 304
  118. Top = 120
  119. end
  120. object Timer1: TTimer
  121. Interval = 800
  122. OnTimer = Timer1Timer
  123. Left = 408
  124. Top = 40
  125. end
  126. object GLWindowsBitmapFont1: TGLWindowsBitmapFont
  127. Font.Charset = ANSI_CHARSET
  128. Font.Color = clWhite
  129. Font.Height = -13
  130. Font.Name = 'Arial'
  131. Font.Style = [fsBold]
  132. Left = 176
  133. Top = 120
  134. end
  135. object MatLib: TGLMaterialLibrary
  136. Materials = <
  137. item
  138. Name = 'Brick01'
  139. Tag = 0
  140. Material.Texture.Disabled = False
  141. Shader = GLUserShader1
  142. end
  143. item
  144. Name = 'Brick02'
  145. Tag = 0
  146. Material.Texture.Disabled = False
  147. Shader = GLUserShader1
  148. end
  149. item
  150. Name = 'Brick03'
  151. Tag = 0
  152. Material.Texture.MinFilter = miLinear
  153. Material.Texture.Disabled = False
  154. Shader = GLUserShader1
  155. end>
  156. Left = 408
  157. Top = 120
  158. end
  159. object GLSimpleNavigation1: TGLSimpleNavigation
  160. Form = Owner
  161. GLSceneViewer = GLSceneViewer1
  162. FormCaption = 'Simple GLSL Shader - %FPS'
  163. KeyCombinations = <
  164. item
  165. ShiftState = [ssLeft, ssRight]
  166. Action = snaZoom
  167. end
  168. item
  169. ShiftState = [ssLeft]
  170. Action = snaMoveAroundTarget
  171. end
  172. item
  173. ShiftState = [ssRight]
  174. Action = snaMoveAroundTarget
  175. end>
  176. Left = 112
  177. Top = 264
  178. end
  179. end