Renderer
Panoramica
Renderer è una classe in Aspose.3D FOSS per .NET. Eredita da: IDisposable.
Il contesto sul renderer.
Questa classe fornisce 7 metodi per lavorare con oggetti Renderer nei programmi .NET. I metodi disponibili includono: ClearCache, CreateRenderer, Dispose, Execute, GetPostProcessing, RegisterEntityRenderer, Render. Tutti i membri pubblici sono accessibili a qualsiasi applicazione .NET dopo aver installato il pacchetto Aspose.3D FOSS per .NET. Proprietà: AssetDirectories, EnableShadows, FallbackEntityRenderer, Frustum, Material, Node, e altre 8.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
ShaderSet | ShaderSet | Lettura/Scrittura | Ottiene o imposta il shader set usato per renderizzare la scena |
Variables | RendererVariableManager | Lettura | Accesso alle variabili interne utilizzate per il rendering |
PresetShaders | PresetShaders | Lettura/Scrittura | Ottiene o imposta il set di shader predefinito |
RenderFactory | RenderFactory | Lettura | Ottiene la factory per costruire oggetti relativi al rendering. |
AssetDirectories | List<string> | Lettura | Directory che memorizzano risorse esterne |
PostProcessings | IList<PostProcessing> | Lettura | Catena di post-elaborazione attiva |
EnableShadows | bool | Lettura/Scrittura | Ottiene o imposta se abilitare le ombre. |
RenderTarget | IRenderTarget | Lettura | Specifica il render target su cui verranno eseguite le seguenti operazioni di rendering. |
Node | Node | Lettura/Scrittura | Ottiene o imposta l’istanza utilizzata per fornire la world transform matrix. |
Frustum | Frustum | Lettura/Scrittura | Ottiene o imposta il frustum che viene usato per fornire la matrice di vista. |
RenderStage | RenderStage | Lettura | Ottiene la fase di rendering corrente. |
Material | Material | Lettura/Scrittura | Ottiene o imposta il materiale che viene usato per fornire le informazioni sul materiale utilizzate dagli shader. |
Shader | ShaderProgram | Lettura/Scrittura | Ottiene o imposta l’istanza dello shader utilizzata per il rendering della geometria. |
FallbackEntityRenderer | EntityRenderer | Lettura/Scrittura | Ottiene o imposta il renderer di fallback per l’entità quando l’entità non ha un renderer speciale definito. |
Metodi
| Firma | Descrizione |
|---|---|
ClearCache() | Cancella manualmente la cache. |
GetPostProcessing(name: string) | Ottiene un post-processor integrato supportato dal renderer. |
Execute(postProcessing: PostProcessing, result: IRenderTarget) | Esegui un post-processing sul target di rendering specificato |
CreateRenderer() | Crea un nuovo Renderer con il profilo predefinito. |
Dispose() | Rilascia il Renderer e tutte le risorse correlate |
RegisterEntityRenderer(renderer: EntityRenderer) | Registra il renderer dell’entità per l’entità specificata |
Render(renderTarget: IRenderTarget) | Esegui il rendering del target specificato |