fDiffuseShader.dfm 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. object FormDiffuseShader: TFormDiffuseShader
  2. Left = 261
  3. Top = 176
  4. Caption = 'GLSL Diffuse Specular Shader'
  5. ClientHeight = 355
  6. ClientWidth = 517
  7. Color = clBtnFace
  8. Font.Charset = DEFAULT_CHARSET
  9. Font.Color = clWindowText
  10. Font.Height = -11
  11. Font.Name = 'MS Sans Serif'
  12. Font.Style = []
  13. OldCreateOrder = False
  14. Position = poScreenCenter
  15. OnCreate = FormCreate
  16. PixelsPerInch = 96
  17. TextHeight = 13
  18. object Viewer: TGLSceneViewer
  19. Left = 0
  20. Top = 0
  21. Width = 356
  22. Height = 355
  23. Camera = Camera
  24. Buffer.FogEnvironment.FogColor.Color = {ACC8483E9A99193FCDCC4C3F9A99993E}
  25. Buffer.FogEnvironment.FogStart = 50.000000000000000000
  26. Buffer.FogEnvironment.FogEnd = 5000.000000000000000000
  27. Buffer.FogEnvironment.FogDistance = fdEyeRadial
  28. Buffer.BackgroundColor = clBackground
  29. Buffer.ContextOptions = [roDoubleBuffer, roStencilBuffer, roRenderToWindow, roDebugContext]
  30. Buffer.AntiAliasing = aaNone
  31. Buffer.DepthPrecision = dp24bits
  32. Buffer.ColorDepth = cd24bits
  33. FieldOfView = 139.774826049804700000
  34. PenAsTouch = False
  35. Align = alClient
  36. TabOrder = 0
  37. end
  38. object Panel1: TPanel
  39. Left = 356
  40. Top = 0
  41. Width = 161
  42. Height = 355
  43. Align = alRight
  44. TabOrder = 1
  45. object LightMovingCheckBox: TCheckBox
  46. Left = 8
  47. Top = 8
  48. Width = 97
  49. Height = 17
  50. Caption = 'Light is Moving'
  51. Checked = True
  52. Color = clBtnFace
  53. ParentColor = False
  54. State = cbChecked
  55. TabOrder = 0
  56. end
  57. object ShaderEnabledCheckBox: TCheckBox
  58. Left = 8
  59. Top = 64
  60. Width = 97
  61. Height = 17
  62. Caption = 'Shader Enabled'
  63. Checked = True
  64. State = cbChecked
  65. TabOrder = 1
  66. OnClick = ShaderEnabledCheckBoxClick
  67. end
  68. object TurnPitchrollCheckBox: TCheckBox
  69. Left = 8
  70. Top = 24
  71. Width = 137
  72. Height = 17
  73. Caption = 'Turn-Pitch-Roll Enabled'
  74. Checked = True
  75. State = cbChecked
  76. TabOrder = 2
  77. end
  78. object RealisticSpecularCheckBox: TCheckBox
  79. Left = 8
  80. Top = 113
  81. Width = 137
  82. Height = 17
  83. Caption = 'Realistic Specular Mode'
  84. TabOrder = 3
  85. OnClick = RealisticSpecularCheckBoxClick
  86. end
  87. object MultiLightShaderCheckBox: TCheckBox
  88. Left = 8
  89. Top = 80
  90. Width = 113
  91. Height = 17
  92. Caption = 'MultiLight Shader'
  93. TabOrder = 4
  94. OnClick = MultiLightShaderCheckBoxClick
  95. end
  96. object EnableFogCheckBox: TCheckBox
  97. Left = 8
  98. Top = 136
  99. Width = 137
  100. Height = 17
  101. Caption = 'Enable fog'
  102. TabOrder = 5
  103. OnClick = EnableFogCheckBoxClick
  104. end
  105. end
  106. object Scene: TGLScene
  107. ObjectsSorting = osNone
  108. Left = 24
  109. Top = 16
  110. object GUICube: TGLDummyCube
  111. CubeSize = 1.000000000000000000
  112. object GLArrowLine1: TGLArrowLine
  113. Position.Coordinates = {00000000000000000000C8420000803F}
  114. Scale.Coordinates = {0000A0410000A0410000A04100000000}
  115. BottomRadius = 0.100000001490116100
  116. Height = 1.000000000000000000
  117. TopRadius = 0.100000001490116100
  118. TopArrowHeadHeight = 0.500000000000000000
  119. TopArrowHeadRadius = 0.200000002980232200
  120. BottomArrowHeadHeight = 0.500000000000000000
  121. BottomArrowHeadRadius = 0.200000002980232200
  122. end
  123. object GLXYZGrid1: TGLXYZGrid
  124. Direction.Coordinates = {00000000000080BF0000000000000000}
  125. Position.Coordinates = {00000000000000000000A0C10000803F}
  126. Up.Coordinates = {00000000000000000000803F00000000}
  127. XSamplingScale.Min = -200.000000000000000000
  128. XSamplingScale.Max = 200.000000000000000000
  129. XSamplingScale.Step = 20.000000000000000000
  130. YSamplingScale.Min = -200.000000000000000000
  131. YSamplingScale.Max = 200.000000000000000000
  132. YSamplingScale.Step = 20.000000000000000000
  133. ZSamplingScale.Min = -200.000000000000000000
  134. ZSamplingScale.Max = 200.000000000000000000
  135. ZSamplingScale.Step = 20.000000000000000000
  136. Parts = [gpX, gpZ]
  137. end
  138. end
  139. object LightCube: TGLDummyCube
  140. Direction.Coordinates = {0000000000000000000080BF00000000}
  141. Position.Coordinates = {000096C300000000000096430000803F}
  142. OnProgress = LightCubeProgress
  143. CubeSize = 1.000000000000000000
  144. object Light: TGLLightSource
  145. ConstAttenuation = 1.000000000000000000
  146. Position.Coordinates = {0000803F00000000000000000000803F}
  147. LightStyle = lsOmni
  148. Specular.Color = {0000803F0000803F0000803F0000803F}
  149. SpotCutOff = 180.000000000000000000
  150. end
  151. object GLSphere1: TGLSphere
  152. Material.FrontProperties.Diffuse.Color = {E6E5653F8180003DCDCC4C3F0000803F}
  153. Material.FrontProperties.Emission.Color = {F4F3733FEEED6D3F000000000000803F}
  154. Radius = 10.000000000000000000
  155. end
  156. end
  157. object LightCube2: TGLDummyCube
  158. Position.Coordinates = {000096430000C842000096430000803F}
  159. Visible = False
  160. CubeSize = 1.000000000000000000
  161. object Light2: TGLLightSource
  162. Ambient.Color = {CDCCCC3DCDCCCC3DCDCCCC3D0000803F}
  163. ConstAttenuation = 1.000000000000000000
  164. Diffuse.Color = {DCD8583FC6BF3F3FDCD8583F0000803F}
  165. LightStyle = lsParallel
  166. Shining = False
  167. Specular.Color = {0000803F0000003F0000003F0000803F}
  168. SpotCutOff = 180.000000000000000000
  169. SpotDirection.Coordinates = {0000C842000096430000C84200000000}
  170. end
  171. object GLArrowLine2: TGLArrowLine
  172. Material.FrontProperties.Ambient.Color = {1904763FCDCC4C3ECDCC4C3E0000803F}
  173. Material.FrontProperties.Diffuse.Color = {E7FB693FCDCC4C3FCDCC4C3F0000803F}
  174. Material.FrontProperties.Emission.Color = {1904763FCDCC4C3ECDCC4C3E0000803F}
  175. Direction.Coordinates = {B25F9ABE8B8F67BFB25F9ABE00000000}
  176. Scale.Coordinates = {00004842000048420000484200000000}
  177. Up.Coordinates = {F7BC23BF4A51DA3EF7BC23BF00000000}
  178. BottomRadius = 0.100000001490116100
  179. Height = 2.000000000000000000
  180. TopRadius = 0.100000001490116100
  181. TopArrowHeadHeight = 0.500000000000000000
  182. TopArrowHeadRadius = 0.200000002980232200
  183. BottomArrowHeadHeight = 0.500000000000000000
  184. BottomArrowHeadRadius = 0.200000002980232200
  185. end
  186. end
  187. object WorldCube: TGLDummyCube
  188. CubeSize = 1.000000000000000000
  189. object Fighter: TGLActor
  190. Material.MaterialLibrary = MaterialLibrary
  191. Material.LibMaterialName = 'Fighter'
  192. Position.Coordinates = {0000164300000000000000000000803F}
  193. Up.Coordinates = {00000000000080BF0000000000000000}
  194. Interval = 100
  195. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  196. end
  197. object Teapot: TGLActor
  198. Material.MaterialLibrary = MaterialLibrary
  199. Material.LibMaterialName = 'Fighter'
  200. Position.Coordinates = {000016C300000000000000000000803F}
  201. Interval = 100
  202. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  203. end
  204. object Sphere_big: TGLActor
  205. Material.MaterialLibrary = MaterialLibrary
  206. Material.LibMaterialName = 'Earth'
  207. Position.Coordinates = {00000000000016C3000000000000803F}
  208. Interval = 100
  209. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  210. end
  211. object Sphere_little: TGLActor
  212. Material.MaterialLibrary = MaterialLibrary
  213. Material.LibMaterialName = 'Earth'
  214. Position.Coordinates = {0000000000001643000000000000803F}
  215. Interval = 100
  216. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  217. end
  218. end
  219. object Camera: TGLCamera
  220. DepthOfView = 500.000000000000000000
  221. FocalLength = 65.000000000000000000
  222. TargetObject = GLXYZGrid1
  223. CameraStyle = csInfinitePerspective
  224. Position.Coordinates = {000016C30000E1430000B4430000803F}
  225. Direction.Coordinates = {00000000000080BF0000000000000000}
  226. Up.Coordinates = {00000000000000000000803F00000000}
  227. end
  228. end
  229. object Cadencer: TGLCadencer
  230. Scene = Scene
  231. MaxDeltaTime = 0.020000000000000000
  232. OnProgress = CadencerProgress
  233. Left = 24
  234. Top = 56
  235. end
  236. object MaterialLibrary: TGLMaterialLibrary
  237. Materials = <
  238. item
  239. Name = 'Fighter'
  240. Tag = 0
  241. Material.FrontProperties.Ambient.Color = {BFBEBE3EBBBABA3EBBBABA3E0000803F}
  242. Material.FrontProperties.Emission.Color = {B1B0B03DB1B0B03DB1B0B03D0000803F}
  243. Material.FrontProperties.Specular.Color = {8988083E8180003E8988083E0000803F}
  244. Material.BlendingMode = bmTransparency
  245. Material.Texture.TextureMode = tmModulate
  246. Material.Texture.Disabled = False
  247. end
  248. item
  249. Name = 'Earth'
  250. Tag = 0
  251. Material.FrontProperties.Ambient.Color = {C1C0403DC1C0403D8180003D0000803F}
  252. Material.FrontProperties.Emission.Color = {A1A0203DA1A0203DC1C0403D0000803F}
  253. Material.FrontProperties.Shininess = 128
  254. Material.FrontProperties.Specular.Color = {0000803F0000803F0000803F0000803F}
  255. Material.BlendingMode = bmTransparency
  256. Material.Texture.TextureMode = tmModulate
  257. Material.Texture.Disabled = False
  258. end>
  259. Left = 24
  260. Top = 88
  261. end
  262. object DiffuseSpecularShader: TGLSLDiffuseSpecularShader
  263. LightPower = 1.000000000000000000
  264. Left = 56
  265. Top = 16
  266. end
  267. object GLSimpleNavigation1: TGLSimpleNavigation
  268. Form = Owner
  269. GLSceneViewer = Viewer
  270. FormCaption = 'GLSL Diffuse Specular Shader - %FPS'
  271. KeyCombinations = <
  272. item
  273. ShiftState = [ssLeft, ssRight]
  274. Action = snaZoom
  275. end
  276. item
  277. ShiftState = [ssLeft]
  278. Action = snaMoveAroundTarget
  279. end
  280. item
  281. ShiftState = [ssRight]
  282. Action = snaMoveAroundTarget
  283. end>
  284. Left = 56
  285. Top = 56
  286. end
  287. end