This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/core/loshader/fog.h
falsycat 80b3b82332 [RELEASE] u22-v04
This version is submitted for U22 final presentation. (squashed 158 commits)
2021-02-07 00:00:00 +00:00

49 lines
991 B
C

#pragma once
#include "util/math/vector.h"
#include "core/locommon/position.h"
#include "./single.h"
#include "./uniblock.h"
typedef struct {
loshader_single_drawer_t super;
} loshader_fog_drawer_t;
typedef enum {
LOSHADER_FOG_TYPE_NONE = 0,
LOSHADER_FOG_TYPE_WHITE_CLOUD = 1,
} loshader_fog_type_t;
typedef struct {
loshader_fog_type_t type;
loshader_fog_type_t prev_type;
float transition;
float bounds_fog;
locommon_position_t bounds_pos;
vec2_t bounds_size;
} loshader_fog_drawer_param_t;
void
loshader_fog_drawer_initialize(
loshader_fog_drawer_t* drawer,
const loshader_uniblock_t* uniblock
);
#define loshader_fog_drawer_deinitialize(drawer) \
loshader_single_drawer_deinitialize(&(drawer)->super)
void
loshader_fog_drawer_set_param(
loshader_fog_drawer_t* drawer,
const loshader_fog_drawer_param_t* param
);
void
loshader_fog_drawer_draw(
const loshader_fog_drawer_t* drawer
);