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