SimpleGLSLUnit.dfm 5.0 KB

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