mirror of
https://github.com/overte-org/overte.git
synced 2025-08-12 02:14:07 +02:00
29 lines
1.1 KiB
C++
29 lines
1.1 KiB
C++
//
|
|
// Created by AndrewMeadows 2017.01.17
|
|
// Copyright 2013-2017 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_CauterizedMeshPartPayload_h
|
|
#define hifi_CauterizedMeshPartPayload_h
|
|
|
|
#include "MeshPartPayload.h"
|
|
|
|
class CauterizedMeshPartPayload : public ModelMeshPartPayload {
|
|
public:
|
|
CauterizedMeshPartPayload(ModelPointer model, int meshIndex, int partIndex, int shapeIndex, const Transform& transform, const Transform& offsetTransform);
|
|
|
|
void updateClusterBuffer(const std::vector<glm::mat4>& clusterMatrices, const std::vector<glm::mat4>& cauterizedClusterMatrices);
|
|
|
|
void updateTransformForCauterizedMesh(const Transform& renderTransform);
|
|
|
|
void bindTransform(gpu::Batch& batch, const render::ShapePipeline::LocationsPointer locations, RenderArgs::RenderMode renderMode) const override;
|
|
|
|
private:
|
|
gpu::BufferPointer _cauterizedClusterBuffer;
|
|
Transform _cauterizedTransform;
|
|
};
|
|
|
|
#endif // hifi_CauterizedMeshPartPayload_h
|