fDiffuseShaderC.dfm 9.7 KB

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