2
다음과 같이 입자의 색상을 검정색으로 설정하려고합니다. 내 배경색은 회색이고 빨간색과 같은 다른 색상은 나타나지만 검정색은 그렇지 않습니다. 검은 색 RGB가 아닙니다 (0,0,0)? 미리 감사드립니다.cocos2d에서 입자 색상을 검정색으로 설정하는 방법
startColor.r = 0.0f;
startColor.g = 0.0f;
startColor.b = 0.0f;
startColor.a = 1.0f;
startColorVar.r = 0.0f;
startColorVar.g = 0.0f;
startColorVar.b = 0.0f;
startColorVar.a = 0.0f;
endColor.r = 0.0f;
endColor.g = 0.0f;
endColor.b = 0.0f;
endColor.a = 1.0f;
endColorVar.r = 0.0f;
endColorVar.g = 0.0f;
endColorVar.b = 0.0f;
endColorVar.a = 0.0f;
self.blendFunc = (ccBlendFunc){GL_SRC_ALPHA, GL_DST_ALPHA};
작동합니다! 정말 감사합니다. – user3201493
작동하는 경우 대답을 수락하십시오. – Kreiri