blob: b85aab20cf5c2fdf8dc47d0a252668a84cb05745 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include "assetFactory/asset.h"
class SceneShader;
class ShadowMapper;
class Location;
class Texture;
class Foliage : public Asset, public StdTypeDefs<Foliage> {
Mesh::Ptr bodyMesh;
std::shared_ptr<Texture> texture;
public:
void render(const SceneShader &, const Location &) const;
void shadows(const ShadowMapper &, const Location &) const;
protected:
friend Persistence::SelectionPtrBase<std::shared_ptr<Foliage>>;
bool persist(Persistence::PersistenceStore & store) override;
void postLoad() override;
};
|