2
0

fcOcean.dfm 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. object FormOcean: TFormOcean
  2. Left = 0
  3. Top = 0
  4. Caption = 'GLSL Ocean'
  5. ClientHeight = 397
  6. ClientWidth = 562
  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. OnCreate = FormCreate
  15. TextHeight = 13
  16. object GLSceneViewer1: TGLSceneViewer
  17. Left = 0
  18. Top = 0
  19. Width = 562
  20. Height = 397
  21. Camera = GLCamera
  22. BeforeRender = GLSceneViewer1BeforeRender
  23. Buffer.BackgroundColor = clBlack
  24. Buffer.FaceCulling = False
  25. Buffer.Lighting = False
  26. FieldOfView = 162.811462402343800000
  27. PenAsTouch = False
  28. Align = alClient
  29. OnMouseDown = GLSceneViewer1MouseDown
  30. TabOrder = 0
  31. ExplicitWidth = 570
  32. end
  33. object GLScene1: TGLScene
  34. ObjectsSorting = osNone
  35. Left = 56
  36. Top = 16
  37. object GLLightSource1: TGLLightSource
  38. ConstAttenuation = 1.000000000000000000
  39. Position.Coordinates = {000000400000A040000000000000803F}
  40. SpotCutOff = 180.000000000000000000
  41. object GLSphere1: TGLSphere
  42. Material.FrontProperties.Diffuse.Color = {0000803F0000803F0000803F0000803F}
  43. Material.FrontProperties.Emission.Color = {0000803F0000803F0000803F0000803F}
  44. Visible = False
  45. Radius = 0.050000000745058060
  46. end
  47. end
  48. object DOInitialize: TGLDirectOpenGL
  49. Direction.Coordinates = {000000000000803F0000000000000000}
  50. Up.Coordinates = {0000000000000000000080BF00000000}
  51. UseBuildList = False
  52. OnRender = DOInitializeRender
  53. Blend = False
  54. end
  55. object DOOceanPlane: TGLDirectOpenGL
  56. Visible = False
  57. UseBuildList = False
  58. OnRender = DOOceanPlaneRender
  59. Blend = False
  60. end
  61. object GLHeightField1: TGLHeightField
  62. Material.MaterialLibrary = MatLib
  63. Material.LibMaterialName = 'water'
  64. XSamplingScale.Min = -100.000000000000000000
  65. XSamplingScale.Max = 100.000000000000000000
  66. XSamplingScale.Step = 2.000000000000000000
  67. YSamplingScale.Min = -100.000000000000000000
  68. YSamplingScale.Max = 100.000000000000000000
  69. YSamplingScale.Step = 2.000000000000000000
  70. end
  71. object GLSphere2: TGLSphere
  72. Material.MaterialLibrary = MatLib
  73. Material.LibMaterialName = 'cubeMap'
  74. Up.Coordinates = {00000000000080BF0000008000000000}
  75. Radius = 150.000000000000000000
  76. end
  77. object GLCamera: TGLCamera
  78. DepthOfView = 200.000000000000000000
  79. FocalLength = 30.000000000000000000
  80. SceneScale = 2.000000000000000000
  81. TargetObject = GLHeightField1
  82. Position.Coordinates = {0000C8C10000A0C1000040400000803F}
  83. Direction.Coordinates = {0000803F000000000000008000000000}
  84. Up.Coordinates = {00000000000000000000803F00000000}
  85. end
  86. end
  87. object MatLib: TGLMaterialLibrary
  88. Materials = <
  89. item
  90. Name = 'water'
  91. Tag = 0
  92. Material.Texture.TextureMode = tmReplace
  93. Material.Texture.TextureFormat = tfRGB
  94. Material.Texture.Disabled = False
  95. Material.Texture.NormalMapScale = 0.050000000745058060
  96. Shader = GLUserShader1
  97. end
  98. item
  99. Name = 'cubeMap'
  100. Tag = 0
  101. Material.Texture.ImageClassName = 'TGLCubeMapImage'
  102. Material.Texture.TextureMode = tmReplace
  103. Material.Texture.TextureWrap = twNone
  104. Material.Texture.MappingMode = tmmCubeMapNormal
  105. Material.Texture.Disabled = False
  106. end>
  107. Left = 56
  108. Top = 72
  109. end
  110. object GLCadencer1: TGLCadencer
  111. Scene = GLScene1
  112. OnProgress = GLCadencer1Progress
  113. Left = 200
  114. Top = 16
  115. end
  116. object GLUserShader1: TGLUserShader
  117. OnDoApply = GLUserShader1DoApply
  118. OnDoUnApply = GLUserShader1DoUnApply
  119. Left = 128
  120. Top = 72
  121. end
  122. object GLMemoryViewer1: TGLMemoryViewer
  123. Camera = CameraCubeMap
  124. Width = 128
  125. Height = 128
  126. Buffer.BackgroundColor = clBlack
  127. Buffer.ContextOptions = [roDoubleBuffer, roRenderToWindow, roDestinationAlpha]
  128. Left = 296
  129. Top = 16
  130. end
  131. object GLScene2: TGLScene
  132. Left = 128
  133. Top = 16
  134. object GLEarthSkyDome1: TGLEarthSkyDome
  135. Direction.Coordinates = {FEFF7F27000080A7FFFF7F3F00000000}
  136. RollAngle = -45.000000000000000000
  137. Up.Coordinates = {F30435BFF304353FD413D42600000000}
  138. Bands = <>
  139. Stars = <>
  140. SunElevation = 25.000000000000000000
  141. Turbidity = 75.000000000000000000
  142. SunDawnColor.Color = {0000803F0000803F0000403F00000000}
  143. ExtendedOptions = []
  144. Slices = 48
  145. Stacks = 24
  146. end
  147. object CameraCubeMap: TGLCamera
  148. DepthOfView = 100.000000000000000000
  149. FocalLength = 50.000000000000000000
  150. Direction.Coordinates = {00000000000000800000803F00000000}
  151. end
  152. end
  153. object GLSimpleNavigation1: TGLSimpleNavigation
  154. Form = Owner
  155. GLSceneViewer = GLSceneViewer1
  156. FormCaption = 'GLSL Ocean - %FPS'
  157. KeyCombinations = <
  158. item
  159. ShiftState = [ssLeft, ssRight]
  160. Action = snaZoom
  161. end
  162. item
  163. ShiftState = [ssLeft]
  164. Action = snaMoveAroundTarget
  165. end
  166. item
  167. ShiftState = [ssRight]
  168. Action = snaMoveAroundTarget
  169. end>
  170. Left = 296
  171. Top = 72
  172. end
  173. end