fdCgCellShader.dfm 2.4 KB

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