fcCelShading.dfm 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. object Form1: TForm1
  2. Left = 0
  3. Top = 0
  4. Caption = 'Cg Cel Shader'
  5. ClientHeight = 337
  6. ClientWidth = 523
  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 = 523
  20. Height = 318
  21. Camera = GLCamera1
  22. FieldOfView = 145.086883544921900000
  23. PenAsTouch = False
  24. Align = alClient
  25. OnMouseDown = GLSceneViewer1MouseDown
  26. OnMouseMove = GLSceneViewer1MouseMove
  27. TabOrder = 0
  28. end
  29. object StatusBar1: TStatusBar
  30. Left = 0
  31. Top = 318
  32. Width = 523
  33. Height = 19
  34. Panels = <
  35. item
  36. Width = 50
  37. end>
  38. end
  39. object GLScene1: TGLScene
  40. Left = 40
  41. Top = 16
  42. object GLDummyCube1: TGLDummyCube
  43. CubeSize = 1.000000000000000000
  44. object GLCamera1: TGLCamera
  45. DepthOfView = 100.000000000000000000
  46. FocalLength = 50.000000000000000000
  47. TargetObject = GLDummyCube1
  48. Position.Coordinates = {00000000000000400000A0400000803F}
  49. Direction.Coordinates = {00000000000000000000803F00000000}
  50. object GLLightSource1: TGLLightSource
  51. ConstAttenuation = 1.000000000000000000
  52. SpotCutOff = 180.000000000000000000
  53. end
  54. end
  55. end
  56. object GLActor1: TGLActor
  57. Material.MaterialLibrary = GLMaterialLibrary1
  58. Material.LibMaterialName = 'CgShaderMat'
  59. Direction.Coordinates = {000000000000803F2EBD3BB300000000}
  60. PitchAngle = 90.000000000000000000
  61. Up.Coordinates = {000000002EBD3BB3000080BF00000000}
  62. Interval = 100
  63. end
  64. end
  65. object CgCellShader: TCgShader
  66. VertexProgram.OnApply = CgCellShaderApplyVP
  67. FragmentProgram.OnApply = CgCellShaderApplyFP
  68. FragmentProgram.OnUnApply = CgCellShaderUnApplyFP
  69. OnApplyVP = CgCellShaderApplyVP
  70. OnApplyFP = CgCellShaderApplyFP
  71. OnUnApplyFP = CgCellShaderUnApplyFP
  72. OnInitialize = CgCellShaderInitialize
  73. Left = 120
  74. Top = 72
  75. end
  76. object GLMaterialLibrary1: TGLMaterialLibrary
  77. Materials = <
  78. item
  79. Name = 'CgShaderMat'
  80. Tag = 0
  81. Material.Texture.Disabled = False
  82. Shader = CgCellShader
  83. end>
  84. Left = 112
  85. Top = 16
  86. end
  87. object GLCadencer1: TGLCadencer
  88. Scene = GLScene1
  89. Left = 40
  90. Top = 72
  91. end
  92. object AsyncTimer1: TGLAsyncTimer
  93. Enabled = True
  94. OnTimer = AsyncTimer1Timer
  95. Left = 256
  96. Top = 16
  97. end
  98. end