small documentation
This commit is contained in:
@@ -23,6 +23,7 @@ namespace Tyra {
|
||||
* Pipeline for animated models (DynamicMesh).
|
||||
* Supports:
|
||||
* - Simple PS2 clipping (culling)
|
||||
* - Frustum culling
|
||||
* - Modes: color, texture+color, dir lights, texture + dir lights
|
||||
*/
|
||||
class DynamicPipeline : public Renderer3DPipeline {
|
||||
|
||||
@@ -20,7 +20,9 @@ namespace Tyra {
|
||||
|
||||
/**
|
||||
* Pipeline specialized in fast rendering of voxels
|
||||
* Supports full "against each plane" clipping
|
||||
* Supports:
|
||||
* - Full "against each plane" clipping
|
||||
* - Frustum culling (on noFullClipChecks = false)
|
||||
*/
|
||||
class MinecraftPipeline : public Renderer3DPipeline {
|
||||
public:
|
||||
|
||||
@@ -31,7 +31,7 @@ class PipelineInfoBag {
|
||||
|
||||
/**
|
||||
* @brief True -> disables "clip against each plane" algorithm.
|
||||
* Mandatory, default: false.
|
||||
* Default: false.
|
||||
*
|
||||
* Full clip checks are slow, but they are
|
||||
* preventing visual artifacts, which can happen
|
||||
|
||||
@@ -23,7 +23,9 @@ namespace Tyra {
|
||||
/**
|
||||
* Pipeline for static models (StaticMesh).
|
||||
* Supports:
|
||||
* - Full "against each plane" clipping,
|
||||
* - Full "against each plane" clipping and simple PS2 clipping
|
||||
* (noFullClipChecks),
|
||||
* - Force enabled precise frustum culling (checks parts of given mesh)
|
||||
* - Modes: color(s), texture+color(s), dir lights, texture + dir lights
|
||||
*/
|
||||
class StaticPipeline : public Renderer3DPipeline {
|
||||
|
||||
@@ -52,6 +52,7 @@ void MinecraftPipeline::render(McpipBlock* blocks, const u32& count,
|
||||
if (noFullClipChecks) {
|
||||
for (u32 i = 0; i < count; i++) cullIndexes.push_back(i);
|
||||
cull(blocks, cullIndexes, &texBuffers, isMulti);
|
||||
return;
|
||||
} else {
|
||||
u32 culled = 0, clipped = 0;
|
||||
std::vector<u32> clipIndexes;
|
||||
|
||||
@@ -23,7 +23,6 @@ void StaticPipeline::init(RendererCore* t_core) {
|
||||
|
||||
void StaticPipeline::onUse() { core.reinitVU1Programs(); }
|
||||
|
||||
// TODO - Clipping mode
|
||||
// TODO - StaPipCore::render(StaPipBag* bags, StaPipBagPackagesBBox* bboxes,
|
||||
// const u32& count)
|
||||
// TODO - MD2 loader - choose between static/dynamic mesh
|
||||
|
||||
Reference in New Issue
Block a user