fCelShadingC.dfm 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. object Form1: TForm1
  2. Left = 192
  3. Top = 114
  4. Caption = 'Cel Shading'
  5. ClientHeight = 420
  6. ClientWidth = 480
  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. Position = poScreenCenter
  14. TextHeight = 13
  15. object GLSceneViewer1: TGLSceneViewer
  16. Left = 0
  17. Top = 0
  18. Width = 480
  19. Height = 420
  20. Camera = GLCamera1
  21. FieldOfView = 153.215011596679700000
  22. PenAsTouch = False
  23. Align = alClient
  24. OnMouseDown = GLSceneViewer1MouseDown
  25. OnMouseMove = GLSceneViewer1MouseMove
  26. TabOrder = 0
  27. end
  28. object GLScene1: TGLScene
  29. Left = 40
  30. Top = 8
  31. object GLDummyCube1: TGLDummyCube
  32. CubeSize = 1.000000000000000000
  33. object GLCamera1: TGLCamera
  34. DepthOfView = 100.000000000000000000
  35. FocalLength = 50.000000000000000000
  36. TargetObject = GLDummyCube1
  37. Position.Coordinates = {00000000000000400000A0400000803F}
  38. Direction.Coordinates = {00000000000000000000803F00000000}
  39. object GLLightSource1: TGLLightSource
  40. ConstAttenuation = 1.000000000000000000
  41. LightStyle = lsOmni
  42. SpotCutOff = 180.000000000000000000
  43. end
  44. end
  45. end
  46. object GLActor1: TGLActor
  47. Material.MaterialLibrary = GLMaterialLibrary1
  48. Material.LibMaterialName = 'TexturedCellMat'
  49. Direction.Coordinates = {000000000000803F2EBD3BB300000000}
  50. PitchAngle = 90.000000000000000000
  51. Up.Coordinates = {000000002EBD3BB3000080BF00000000}
  52. Interval = 100
  53. end
  54. object GLTorus1: TGLTorus
  55. Material.MaterialLibrary = GLMaterialLibrary1
  56. Material.LibMaterialName = 'ColoredCelMat'
  57. Direction.Coordinates = {000000000000803F0000000000000000}
  58. Up.Coordinates = {00000000000000000000803F00000000}
  59. MajorRadius = 2.500000000000000000
  60. MinorRadius = 0.250000000000000000
  61. StopAngle = 360.000000000000000000
  62. Parts = [toSides, toStartDisk, toStopDisk]
  63. end
  64. end
  65. object GLMaterialLibrary1: TGLMaterialLibrary
  66. Materials = <
  67. item
  68. Name = 'TexturedCellMat'
  69. Tag = 0
  70. Material.FrontProperties.Emission.Color = {0000803F0000003F000000000000803F}
  71. Material.MaterialOptions = [moNoLighting]
  72. Material.Texture.Disabled = False
  73. Shader = GLTexturedCelShader
  74. end
  75. item
  76. Name = 'ColoredCelMat'
  77. Tag = 0
  78. Material.FrontProperties.Diffuse.Color = {00000000000000000000803F0000803F}
  79. Shader = GLColoredCelShader
  80. end>
  81. Left = 136
  82. Top = 8
  83. end
  84. object GLCadencer1: TGLCadencer
  85. Scene = GLScene1
  86. OnProgress = GLCadencer1Progress
  87. Left = 32
  88. Top = 56
  89. end
  90. object AsyncTimer1: TGLAsyncTimer
  91. Enabled = True
  92. OnTimer = AsyncTimer1Timer
  93. ThreadPriority = tpNormal
  94. Left = 304
  95. Top = 8
  96. end
  97. object GLTexturedCelShader: TGLCelShader
  98. CelShaderOptions = [csoOutlines, csoTextured]
  99. OutlineWidth = 3.000000000000000000
  100. Left = 136
  101. Top = 56
  102. end
  103. object GLColoredCelShader: TGLCelShader
  104. CelShaderOptions = [csoOutlines]
  105. OutlineWidth = 3.000000000000000000
  106. Left = 304
  107. Top = 56
  108. end
  109. end