fSimpleShaderC.dfm 5.2 KB

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