소스 검색

Corrected function usage

pull/755/head
Ray 6 년 전
부모
커밋
e7466eb0c4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/textures.c

+ 1
- 1
src/textures.c 파일 보기

@ -2294,7 +2294,7 @@ Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float
// octaves = 6 -- number of "octaves" of noise3() to sum
// NOTE: We need to translate the data from [-1..1] to [0..1]
float p = (stb_perlin_fbm_noise3(nx, ny, 1.0f, 2.0f, 0.5f, 6, 0, 0, 0) + 1.0f)/2.0f;
float p = (stb_perlin_fbm_noise3(nx, ny, 1.0f, 2.0f, 0.5f, 6) + 1.0f)/2.0f;
int intensity = (int)(p*255.0f);
pixels[y*width + x] = (Color){intensity, intensity, intensity, 255};

불러오는 중...
취소
저장