scale fixed.
This commit is contained in:
parent
ac6a01d5be
commit
4823629510
@ -155,7 +155,7 @@ bool sortFunction(std::tuple<int, float> objA, std::tuple<int, float> objB)
|
||||
PlanetParams populatePlanet(PlanetParams planet, std::vector<Plant::Plant> plants)
|
||||
{
|
||||
float probability=0.5f;
|
||||
int HOW_MANY_PLANTS = 100;
|
||||
int HOW_MANY_PLANTS = 1000;
|
||||
int PRECISION = 10000;
|
||||
float NOTHING_SPAWNS_CUTOFF = 0.0;
|
||||
int sum = 0;
|
||||
@ -320,7 +320,7 @@ glm::mat4 createPerspectiveMatrix()
|
||||
|
||||
glm::mat4 perspectiveMatrix;
|
||||
float n = 0.05;
|
||||
float f = 100.;
|
||||
float f = 300.;
|
||||
float a1 = glm::min(aspectRatio, 1.f);
|
||||
float a2 = glm::min(1 / aspectRatio, 1.f);
|
||||
perspectiveMatrix = glm::mat4({
|
||||
@ -435,8 +435,8 @@ void drawObjectTexture_plantInstanced(Core::RenderContext& context, std::vector<
|
||||
void placeObjectOnPlanet(Core::RenderContext& objectContext, glm::mat4 objectMatrix,float scale,std::vector<glm::vec3>placePoints, PlanetParams planetParams,int count) {
|
||||
float planetScale = planetParams.size;
|
||||
|
||||
glm::mat4 savedobjectMatrix=objectMatrix;
|
||||
objectMatrix = glm::scale(objectMatrix, glm::vec3(scale));
|
||||
glm::mat4 savedobjectMatrix;
|
||||
savedobjectMatrix = glm::scale(objectMatrix, glm::vec3(scale));
|
||||
float diameter = 24.4 * planetScale;
|
||||
glm::vec3 base = glm::vec3(0.f, 1.f, 0.f);
|
||||
glm::vec3 axis;
|
||||
|
Loading…
Reference in New Issue
Block a user